Correct travis configuration.

This commit is contained in:
James Cole 2016-11-19 16:07:02 +01:00
parent ff4e1838bc
commit b057d69f8e
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,8 @@
language: php
sudo: false
php:
- 7
- '7.0'
- hhvm
install:
- phpenv config-rm xdebug.ini
@ -13,7 +14,7 @@ install:
- php artisan env
- mv -v .env.testing .env
- php artisan env
- test.sh --notest
- ./test.sh --notest
script:
- phpunit

View File

@ -34,8 +34,11 @@ fi
cp $DATABASECOPY $DATABASE
# run PHPUnit
phpunit
if [ "$1" == "--notest" ]; then
echo "Must not run PHPUnit"
else
phpunit
fi
# restore current config:
mv .env.current .env