Skip to content

Commit baeae64

Browse files
committed
Merge pull request #784 from LearningLocker/issue-exitcode
Tries to fail on failed conformance tests.
2 parents a04c8a8 + b3f0c34 commit baeae64

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ before_script:
1717
- sudo chmod -R 777 ./uploads
1818
- php artisan migrate --env="testing"
1919

20-
script: ./vendor/bin/phpunit
21-
after_success: sh test.sh
20+
script:
21+
- ./vendor/bin/phpunit
22+
- sh test.sh
2223

2324
notifications:
2425
slack:

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [ "${DEVELOP}" = "${TRAVIS_BRANCH}" ]; then
2525
cd src
2626
npm install -g grunt-cli > /dev/null
2727
npm install > /dev/null
28-
grunt --bail --reporter=dot --endpoint="http://0.0.0.0:8000/data/xAPI/" --username="1484c2ac05269b8c5479a1dd6a0d6370991fd6a1" --password="f0ef3d8062805c0fc1675beb8ac0715c75df13cb" --xapi-version="1.0.1"
28+
grunt --bail --reporter=dot --endpoint="http://0.0.0.0:8000/data/xAPI/" --username="1484c2ac05269b8c5479a1dd6a0d6370991fd6a1" --password="f0ef3d8062805c0fc1675beb8ac0715c75df13cb" --xapi-version="1.0.1" || exit 1;
2929

3030
# Stops the server.
3131
ps aux | grep [p]hp | awk '{print $2}' | xargs kill

0 commit comments

Comments
 (0)