Skip to content

Commit

Permalink
Tweak to travis build to debug behat
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Rainville committed Jan 22, 2020
1 parent f2739ff commit 534a2ab
Show file tree
Hide file tree
Showing 6 changed files with 35,765 additions and 18 deletions.
27 changes: 14 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dist: trusty
before_install:
- sudo apt-get update
- sudo apt-get install chromium-chromedriver
- nvm install 10

cache:
directories:
Expand All @@ -26,20 +27,20 @@ env:

matrix:
include:
- php: 7.1
env: PHPUNIT_TEST=1
# - php: 7.1
# env: PHPUNIT_TEST=1
- php: 7.2
env: BEHAT_TEST=1
- php: 7.3
env: PHPUNIT_TEST=1
- php: 7.1
env: NPM_TEST=1
- php: 7.2
env: PHPCS_TEST=1
- php: 7.3
env:
- DB=PGSQL
- PHPUNIT_TEST=1
# - php: 7.3
# env: PHPUNIT_TEST=1
# - php: 7.1
# env: NPM_TEST=1
# - php: 7.2
# env: PHPCS_TEST=1
# - php: 7.3
# env:
# - DB=PGSQL
# - PHPUNIT_TEST=1

before_script:
# Extra $PATH
Expand All @@ -65,7 +66,7 @@ before_script:
- if [[ $BEHAT_TEST ]]; then (vendor/bin/serve --bootstrap-file vendor/silverstripe/cms/tests/behat/serve-bootstrap.php &> artifacts/serve.log &); fi

# Install NPM dependencies
- if [[ $NPM_TEST ]]; then nvm install && nvm use && npm install -g yarn && yarn install --network-concurrency 1 && (cd vendor/silverstripe/admin && yarn install --network-concurrency 1) && yarn run build; fi
# - npm install -g yarn && yarn install --network-concurrency 1 (cd vendor/silverstripe/admin && yarn install --network-concurrency 1 && yarn run dev) && yarn run dev

script:
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests/php; fi
Expand Down
Loading

0 comments on commit 534a2ab

Please sign in to comment.