2 # - run testsuite for every PHP version
3 # - run lint for every PHP version
4 # - run Selenium for single PHP version
17 - PHPUNIT_ARGS="--exclude-group selenium"
20 - secure: "D24AZRWfuIYuA42eI5Rlg+6W0U1c+X33e6XqNMDzjl7KmhIqZaplOU++mKQLcx5+uIjZ4h7oJi8jIo/gmU8wHC4q+qKbL4xKIqx1AgNDwr6Upc9IBRnlfmXiwM2uxZGn5y0LdH5xM4FzBiN3Giff9hbnIdMJKvVudKVZNlHnzr8="
21 - TESTSUITE_BROWSERSTACK_USER=phpMyAdmin
23 - TESTSUITE_PASSWORD=root
24 - TESTSUITE_SELENIUM_COVERAGE=http://127.0.0.1:8000/phpunit_coverage.php
26 - export PATH=~/.composer/vendor/bin/:$PATH
27 - mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')" ;
28 - set -e ; if [[ -z "$LINT" ]] ; then
30 composer install --dev --no-interaction ;
32 if [[ $TRAVIS_PHP_VERSION != "hhvm" ]] ; then
34 git clone --depth=1 git://github.com/zenovich/runkit.git ;
42 phpenv config-add test/travis.php.ini ;
47 if [[ ! -z "$SELENIUM" ]] ; then
49 php --server 127.0.0.1:8000 &
51 wget https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip ;
52 unzip BrowserStackLocal-linux-x64.zip ;
53 ./BrowserStackLocal -localIdentifier "travis-$TRAVIS_JOB_NUMBER" -onlyAutomate "$TESTSUITE_BROWSERSTACK_KEY" 127.0.0.1,8000,0 &
55 mysql -uroot -p$TESTSUITE_PASSWORD < examples/create_tables.sql ;
61 - set -e; if [[ -z "$LINT" ]] ; then
62 export TESTSUITE_URL="http://127.0.0.1:8000" ;
63 if [[ $TRAVIS_PHP_VERSION == "hhvm" ]] ; then
66 if [[ ! -z "$SELENIUM" ]] ; then
67 ant phpunit-nocoverage ;
76 - if [[ -f vendor/bin/coveralls ]] ; then php vendor/bin/coveralls -v ; fi
80 env: PHPUNIT_ARGS="--exclude-group selenium"
82 env: PHPUNIT_ARGS="--group selenium" SELENIUM="yes"
86 env: PHPUNIT_ARGS="--group selenium" SELENIUM="yes"