Skip to content

Commit

Permalink
Improve TravisCI config for selenium step and add TESTSUITE_SERVER env
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed May 24, 2020
1 parent b12587b commit 0a6a316
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .travis.yml
Expand Up @@ -17,11 +17,6 @@ script:
- ./scripts/generate-mo --quiet
- ./vendor/bin/phpunit --configuration phpunit.xml.dist --exclude-group selenium

after_script:
- if [ -f php.log ] ; then cat php.log ; fi
- if [ -f nginx-error.log ] ; then cat nginx-error.log ; fi
- if [ -f config.inc.php ] ; then rm -rf config.inc.php; fi

after_success:
- bash <(curl -s https://codecov.io/bash)
- if [ -f build/logs/clover.xml ] ; then curl -LsO https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
Expand Down Expand Up @@ -204,6 +199,7 @@ jobs:
- TESTSUITE_SELENIUM_BROWSER=chrome
- TESTSUITE_USER=root
- TESTSUITE_URL=http://127.0.0.1:8000
- TESTSUITE_SERVER="127.0.0.1"
- TESTSUITE_DATABASE="selenium"
before_script:
- export TESTSUITE_PASSWORD=`openssl rand -base64 30`
Expand All @@ -212,16 +208,16 @@ jobs:
- mysql -uroot < sql/create_tables.sql
- mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')"
- ./test/start-local-server
script: ./vendor/bin/phpunit --configuration phpunit.xml.nocoverage --group selenium --verbose --debug
after_script:
- if [ -f php.log ] ; then cat php.log ; fi
- if [ -f nginx-error.log ] ; then cat nginx-error.log ; fi
- if [ -f config.inc.php ] ; then rm -rf config.inc.php; fi
- ~/browserstack/BrowserStackLocal --daemon stop
before_install: phpenv config-rm xdebug.ini
install:
- nvm install 10
before_install:
- phpenv config-rm xdebug.ini
- ./test/install-browserstack
- composer install --no-interaction
- yarn install --non-interactive
- cp test/config.e2e.inc.php config.inc.php
script: ./vendor/bin/phpunit --configuration phpunit.xml.nocoverage --group selenium --verbose --debug
addons:
apt:
packages:
Expand Down

0 comments on commit 0a6a316

Please sign in to comment.