Do not use ant on Travis

It is just additional overhead without real benefit.

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-03-01 11:46:24 +01:00
parent 0b0e99cc02
commit 4f37569773
4 changed files with 12 additions and 11 deletions

View File

@ -67,7 +67,7 @@ matrix:
before_install:
- brew tap homebrew/php
- brew update
- brew install ant gettext php70 mariadb
- brew install gettext php70 mariadb
- brew link --force gettext
- curl https://getcomposer.org/installer | php
- ln -s "`pwd`/composer.phar" /usr/local/bin/composer

View File

@ -1,7 +1,7 @@
#!/bin/sh
if [ -z "$TRAVIS_COMMIT_RANGE" ] ; then
ant lint
find . -name '*.php' -not -path './vendor/*' | xargs -n1 -r php -l
else
git diff --name-only $TRAVIS_COMMIT_RANGE -- '*.php' | xargs -n1 -r php -l
fi

View File

@ -1,5 +1,3 @@
#!/bin/sh
export PHPUNIT_ARGS="--group selenium --debug"
ant phpunit-nocoverage
./vendor/bin/phpunit --configuration phpunit.xml.nocoverage --group selenium --debug

View File

@ -1,9 +1,12 @@
#!/bin/sh
export PHPUNIT_ARGS="--exclude-group selenium"
case "$TRAVIS_PHP_VERSION" in
hhvm*)
CONFIG=phpunit.xml.hhvm
;;
*)
CONFIG=phpunit.xml.dist
;;
esac
if [ "$TRAVIS_PHP_VERSION" = "hhvm" ] ; then
ant phpunit-hhvm
else
ant phpunit
fi
./vendor/bin/phpunit --configuration $CONFIG --exclude-group selenium