build(nx): parallelize ci job

This commit is contained in:
Victor Savkin 2019-07-15 01:00:22 -04:00
parent 6516176b65
commit 16a4e8d1f2

View File

@ -7,23 +7,30 @@ matrix:
sudo: required sudo: required
addons: addons:
chrome: stable chrome: stable
before_install:
before_install: - export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then install:
export DISPLAY=:99.0; - yarn install --network-timeout 1000000
sh -e /etc/init.d/xvfb start; script:
fi
install:
- yarn install --network-timeout 1000000 # Timeout needed for Windows (really slow)
script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then yarn checkformat --head=$TRAVIS_PULL_REQUEST_SHA --base=$(git merge-base HEAD $TRAVIS_BRANCH); fi' - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then yarn checkformat --head=$TRAVIS_PULL_REQUEST_SHA --base=$(git merge-base HEAD $TRAVIS_BRANCH); fi'
- yarn test:all
- yarn e2e
- yarn checkcommit - yarn checkcommit
- yarn checkimports - yarn checkimports
- yarn documentation - yarn documentation
- yarn test:all
- os: linux
language: node_js
node_js: 10
dist: trusty
sudo: required
addons:
chrome: stable
before_install:
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start;
install:
- yarn install --network-timeout 1000000
script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then yarn checkformat --head=$TRAVIS_PULL_REQUEST_SHA --base=$(git merge-base HEAD $TRAVIS_BRANCH); fi'
- yarn e2e
notifications: notifications:
email: false email: false