2 # - run testsuite for every PHP version
3 # - run lint for every PHP version
4 # - run Selenium for single PHP version
35 - TESTSUITE_URL=http://127.0.0.1:8000
38 - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then source ~/virtualenv/python3.6/bin/activate ; fi
39 - ./test/ci-install-$CI_MODE
40 - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then case "$TRAVIS_PHP_VERSION" in hhvm*) ;; *) phpenv config-add test/php-noprofile.ini ;; esac ; fi
43 - export TESTSUITE_PASSWORD=`openssl rand -base64 30`
44 - export TESTSUITE_BROWSERSTACK_KEY=`echo cHlDcHJTNmZwZjVlaUR2RmV6VkU= | base64 --decode`
45 - export PATH=~/.composer/vendor/bin/:$PATH
46 - mysql -uroot -e "CREATE DATABASE IF NOT EXISTS test"
47 - mysql -uroot < sql/create_tables.sql
48 - mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')"
49 - ./test/start-local-server
52 - ./scripts/generate-mo --quiet
53 - if [ $CI_MODE = test ] ; then ./test/ci-lint ; fi
57 - if [ -f vendor/bin/codacycoverage ] ; then php vendor/bin/codacycoverage clover || true ; fi
58 - if [ -f php.log ] ; then cat php.log ; fi
59 - if [ -f nginx-error.log ] ; then cat nginx-error.log ; fi
60 - if [ -f build/logs/phpunit.json ] ; then ./scripts/phpunit-top-tests build/logs/phpunit.json ; fi
61 - if [ -f config.inc.php ] ; then rm -rf config.inc.php; fi
64 - bash <(curl -s https://codecov.io/bash)
82 - brew install openldap libiconv php@7.2 composer mariadb
83 - brew link --force gettext
84 - sed -i -e 's/^memory_limit = .*/memory_limit = -1/' /usr/local/etc/php/7.2/php.ini
87 env: CI_MODE=test DBASE=true
89 - pecl channel-update pecl.php.net
90 - pecl install dbase-7.0.0beta1
91 - test/ci-install-test
93 env: CI_MODE=test DBASE=true
95 - pecl channel-update pecl.php.net
97 - test/ci-install-test
103 - env: CI_MODE=test DBASE=true
108 - $HOME/.composer/cache/
111 # Install APT packages
112 # - git > 2.5.1 needed for worktrees
113 # - mysql server does not seem to be always present on Travis Trusty environment