2 # - run testsuite for every PHP version
3 # - run lint for every PHP version
4 # - run Selenium for single PHP version
18 - PHPUNIT_ARGS="--exclude-group selenium"
21 - TESTSUITE_PASSWORD=root
22 - TESTSUITE_URL=http://127.0.0.1:8000
25 - pip install --user codecov
26 - ./test/install-runkit
27 - ./test/install-browserstack
28 - composer install --dev --no-interaction
31 - if [ $TRAVIS_PHP_VERSION != "hhvm" ] ; then phpenv config-add test/php-noprofile.ini ; fi
32 - export PATH=~/.composer/vendor/bin/:$PATH
33 - mysql -uroot -e "CREATE DATABASE test"
34 - mysql -uroot < sql/create_tables.sql
35 - mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')"
36 - ./test/start-local-server
43 if [ $TRAVIS_PHP_VERSION == "hhvm" ] ; then
46 if [ ! -z "$SELENIUM" ] ; then
47 ant phpunit-nocoverage ;
54 - if [ -f vendor/bin/coveralls ] ; then php vendor/bin/coveralls -v || true ; fi
55 - if [ -f vendor/bin/codacycoverage ] ; then php vendor/bin/codacycoverage clover || true ; fi
57 - if [ -f php.log ] ; then cat php.log ; fi
62 env: PHPUNIT_ARGS="--group selenium" SELENIUM="yes"
66 env: PHPUNIT_ARGS="--group selenium" SELENIUM="yes"
69 - $HOME/.composer/cache/
72 # trigger Buildtime Trend Service to parse Travis CI log
75 - https://buildtimetrend.herokuapp.com/travis