Skip to content

Commit

Permalink
~ pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vantoozz committed Feb 20, 2021
1 parent 21b644d commit 453d3b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ if [ $? != 0 ]; then
exit 1
fi

docker run --rm -v "$(pwd)":/opt/project "$(docker build -q -f=docker/php74.dockerfile .)" bash ./run_examples.sh > /dev/null
docker run --rm -v "$(pwd)":/opt/project "$(docker build -q -f=docker/php74.dockerfile .)" bash ./run_examples.sh
if [ $? != 0 ]; then
echo "Examples broken."
exit 1
fi

4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@
}
},
"config": {
"preferred-install": "dist"
"preferred-install": {
"*": "dist"
}
},
"scripts": {
"post-install-cmd": [
Expand Down

0 comments on commit 453d3b1

Please sign in to comment.