2 # - run testsuite for every PHP version
3 # - run lint for every PHP version
4 # - run Selenium for single PHP version
29 - TESTSUITE_URL=http://127.0.0.1:8000
32 - ./test/ci-install-$CI_MODE
33 - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then case "$TRAVIS_PHP_VERSION" in hhvm*) ;; *) phpenv config-add test/php-noprofile.ini ;; esac ; fi
36 - export TESTSUITE_PASSWORD=`openssl rand -base64 30`
37 - export TESTSUITE_BROWSERSTACK_KEY=`echo eDJkYVJzelR5bnJMbkthTEFBcXI= | base64 --decode`
38 - export PATH=~/.composer/vendor/bin/:$PATH
39 - mysql -uroot -e "CREATE DATABASE IF NOT EXISTS test"
40 - mysql -uroot < sql/create_tables.sql
41 - mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')"
42 - ./test/start-local-server
45 - ./scripts/generate-mo --quiet
46 - if [ $CI_MODE = test ] ; then ./test/ci-lint ; fi
50 - if [ -f vendor/bin/codacycoverage ] ; then php vendor/bin/codacycoverage clover || true ; fi
51 - if [ -f php.log ] ; then cat php.log ; fi
52 - if [ -f build/logs/phpunit.json ] ; then ./scripts/phpunit-top-tests build/logs/phpunit.json ; fi
53 - if [ -f config.inc.php ] ; then rm -rf config.inc.php; fi
56 - bash <(curl -s https://codecov.io/bash)
71 - brew tap homebrew/php
73 - brew install gettext php71 mariadb
74 - brew link --force gettext
75 - sed -i -e 's/^memory_limit = .*/memory_limit = -1/' /usr/local/etc/php/7.1/php.ini
76 - curl https://getcomposer.org/installer | php
77 - ln -s "`pwd`/composer.phar" /usr/local/bin/composer
83 - $HOME/.composer/cache/
86 # Install APT packages
87 # - git > 2.5.1 needed for worktrees
88 # - mysql server does not seem to be always present on Travis Trusty environment