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 - secure: "TR3s7lHkREN706g+FeNXl1S0R2fpcI1H+n8USIkl5WBd7S2/NpsZlSfkrgnC7/xRBDXzHwuYd8JQQyAZyrqPEeLqIqlKzxIcTHOiJWGeR/YO7JXsr1Slt/nFqygpIyz8yOh3QIvX6FMzPsamBlUNhRvTAkd2wXPMBpXQlhTVmX8="
23 - TESTSUITE_BROWSERSTACK_USER=phpMyAdmin
25 - TESTSUITE_PASSWORD=root
26 - TESTSUITE_URL=http://127.0.0.1:8000
29 - export PATH=~/.composer/vendor/bin/:$PATH
30 - mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')" ;
31 - composer install --dev --no-interaction
32 - set -e ; if [ -z "$LINT" ] ; then
34 if [ $TRAVIS_PHP_VERSION != "hhvm" ] ; then
36 git clone --depth=1 git://github.com/zenovich/runkit.git ;
38 if [ $TRAVIS_PHP_VERSION = "5.6" ] ; then
39 wget https://github.com/zenovich/runkit/pull/71.diff ;
48 phpenv config-add test/travis.php.ini ;
52 if [ ! -z "$SELENIUM" ] ; then
54 php --server 127.0.0.1:8000 &
56 wget https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip ;
57 unzip BrowserStackLocal-linux-x64.zip ;
58 ./BrowserStackLocal -localIdentifier "travis-$TRAVIS_JOB_NUMBER" -onlyAutomate "$TESTSUITE_BROWSERSTACK_KEY" 127.0.0.1,8000,0 &
60 mysql -uroot -p$TESTSUITE_PASSWORD < examples/create_tables.sql ;
67 - set -e; if [ -z "$LINT" ] ; then
68 if [ $TRAVIS_PHP_VERSION == "hhvm" ] ; then
71 if [ ! -z "$SELENIUM" ] ; then
72 ant phpunit-nocoverage ;
82 - if [ -f build/logs/clover.xml ] ; then php vendor/bin/ocular code-coverage:upload --format=php-clover build/logs/clover.xml || true ; fi
83 - if [ -f vendor/bin/coveralls ] ; then php vendor/bin/coveralls -v || true ; fi
88 env: PHPUNIT_ARGS="--group selenium" SELENIUM="yes"
90 env: PHPUNIT_ARGS="--exclude-group selenium"
94 env: PHPUNIT_ARGS="--group selenium" SELENIUM="yes"
97 - $HOME/.composer/cache/