2 # - run testsuite for every PHP version
3 # - run lint for every PHP version
4 # - run Selenium for single PHP version
31 - TESTSUITE_URL=http://127.0.0.1:8000
34 - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then source ~/virtualenv/python3.6/bin/activate ; fi
35 - ./test/ci-install-$CI_MODE
36 - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then case "$TRAVIS_PHP_VERSION" in hhvm*) ;; *) phpenv config-add test/php-noprofile.ini ;; esac ; fi
39 - export TESTSUITE_PASSWORD=`openssl rand -base64 30`
40 - export TESTSUITE_BROWSERSTACK_KEY=`echo cHlDcHJTNmZwZjVlaUR2RmV6VkU= | base64 --decode`
41 - export PATH=~/.composer/vendor/bin/:$PATH
42 - mysql -uroot -e "CREATE DATABASE IF NOT EXISTS test"
43 - mysql -uroot < sql/create_tables.sql
44 - mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')"
45 - ./test/start-local-server
48 - ./scripts/generate-mo --quiet
49 - if [ $CI_MODE = test ] ; then ./test/ci-lint ; fi
53 - if [ -f vendor/bin/codacycoverage ] ; then php vendor/bin/codacycoverage clover || true ; fi
54 - if [ -f php.log ] ; then cat php.log ; fi
55 - if [ -f nginx-error.log ] ; then cat nginx-error.log ; fi
56 - if [ -f build/logs/phpunit.json ] ; then ./scripts/phpunit-top-tests build/logs/phpunit.json ; fi
57 - if [ -f config.inc.php ] ; then rm -rf config.inc.php; fi
60 - bash <(curl -s https://codecov.io/bash)
80 - brew link --force gettext
81 - echo "memory_limit=-1" > /usr/local/etc/php/7.3/conf.d/50-travis.ini
82 - echo "pcre.jit=0" >> /usr/local/etc/php/7.3/conf.d/50-travis.ini
95 env: CI_MODE=test DBASE=true
97 - pecl channel-update pecl.php.net
98 - pecl install dbase-7.0.0beta1
99 - test/ci-install-test
101 env: CI_MODE=test DBASE=true
103 - pecl channel-update pecl.php.net
105 - test/ci-install-test
109 - env: CI_MODE=test DBASE=true
114 - $HOME/.composer/cache/
117 # Install APT packages
118 # - git > 2.5.1 needed for worktrees
119 # - mysql server does not seem to be always present on Travis Trusty environment