2 # - run testsuite for every PHP version
3 # - run lint for every PHP version
4 # - run Selenium for single PHP version
19 - PHPUNIT_ARGS="--exclude-group selenium"
22 - TESTSUITE_PASSWORD=root
23 - TESTSUITE_URL=http://127.0.0.1:8000
26 - export PATH=~/.composer/vendor/bin/:$PATH
27 - mysql -uroot -e "CREATE DATABASE test"
28 - mysql -uroot < sql/create_tables.sql
29 - mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')"
30 - composer install --dev --no-interaction
31 - if [ $TRAVIS_PHP_VERSION != "hhvm" ] ; then ./test/install-runkit ; fi
32 - if [ -n "$SELENIUM" ] ; then ./test/install-browserstack ; fi
33 - if [ -n "$SELENIUM" ] ; then php --server 127.0.0.1:8000 > php.log & fi
34 - if [ -n "$SELENIUM" ] ; then ~/browserstack/BrowserStackLocal -localIdentifier "travis-$TRAVIS_JOB_NUMBER" -onlyAutomate "$TESTSUITE_BROWSERSTACK_KEY" 127.0.0.1,8000,0 & fi
39 - if [ -z "$SELENIUM" ] ; then ant lint ; fi
41 if [ $TRAVIS_PHP_VERSION == "hhvm" ] ; then
44 if [ ! -z "$SELENIUM" ] ; then
45 ant phpunit-nocoverage ;
52 - if [ -f build/logs/clover.xml ] ; then php vendor/bin/ocular code-coverage:upload --format=php-clover build/logs/clover.xml || true ; fi
53 - if [ -f vendor/bin/coveralls ] ; then php vendor/bin/coveralls -v || true ; fi
54 - if [ -f php.log ] ; then cat php.log ; fi
59 env: PHPUNIT_ARGS="--group selenium" SELENIUM="yes"
63 env: PHPUNIT_ARGS="--group selenium" SELENIUM="yes"
66 - $HOME/.composer/cache/