use runInBand in CI
This commit is contained in:
parent
c46ccfb56a
commit
97614b475a
|
@ -54,7 +54,7 @@ jobs:
|
|||
- run: yarn --frozen-lockfile
|
||||
- run: yarn link --frozen-lockfile || true
|
||||
- run: yarn link webpack --frozen-lockfile
|
||||
- run: yarn test:basic --ci
|
||||
- run: yarn test:basic --ci --runInBand
|
||||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
flags: basic
|
||||
|
@ -82,7 +82,7 @@ jobs:
|
|||
path: .jest-cache
|
||||
key: jest-unit-${{ env.GITHUB_SHA }}
|
||||
restore-keys: jest-unit-
|
||||
- run: yarn cover:unit --ci --cacheDirectory .jest-cache
|
||||
- run: yarn cover:unit --ci --runInBand --cacheDirectory .jest-cache
|
||||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
flags: unit
|
||||
|
@ -121,7 +121,7 @@ jobs:
|
|||
path: .jest-cache
|
||||
key: jest-integration-${{ env.GITHUB_SHA }}
|
||||
restore-keys: jest-integration-
|
||||
- run: yarn cover:integration --ci --cacheDirectory .jest-cache
|
||||
- run: yarn cover:integration --ci --runInBand --cacheDirectory .jest-cache
|
||||
- run: yarn cover:merge
|
||||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
|
|
74
.travis.yml
74
.travis.yml
|
@ -1,74 +0,0 @@
|
|||
dist: trusty
|
||||
language: node_js
|
||||
|
||||
branches:
|
||||
only:
|
||||
- webpack-4
|
||||
- main
|
||||
- next
|
||||
- dev-1
|
||||
|
||||
cache:
|
||||
yarn: true
|
||||
directories:
|
||||
- ".jest-cache"
|
||||
- ".eslintcache"
|
||||
|
||||
stages:
|
||||
- basic
|
||||
- advanced
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: linux
|
||||
node_js: "12"
|
||||
env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=basic
|
||||
stage: basic
|
||||
- os: linux
|
||||
node_js: "12"
|
||||
env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=lintunit
|
||||
stage: advanced
|
||||
- os: linux
|
||||
node_js: "12"
|
||||
env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
stage: advanced
|
||||
- os: linux
|
||||
node_js: "12"
|
||||
env: NO_WATCH_TESTS=1 ALTERNATIVE_SORT=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
stage: advanced
|
||||
- os: linux
|
||||
node_js: "10"
|
||||
env:
|
||||
- NODEJS_VERSION=v15.0.0-nightly2020082003293aa3a1
|
||||
- YARN_EXTRA_ARGS="--ignore-engines"
|
||||
- NO_WATCH_TESTS=1
|
||||
- JEST="--maxWorkers=2 --cacheDirectory .jest-cache"
|
||||
- JOB_PART=integration
|
||||
stage: advanced
|
||||
fast_finish: true
|
||||
|
||||
before_install:
|
||||
- |
|
||||
if [ "$NODEJS_VERSION" != "" ];
|
||||
then
|
||||
mkdir /opt/node
|
||||
curl --silent "https://nodejs.org/download/nightly/$NODEJS_VERSION/node-$NODEJS_VERSION-linux-x64.tar.gz" | tar -zxf - --directory /opt/node
|
||||
export PATH="/opt/node/node-$NODEJS_VERSION-linux-x64/bin:$PATH"
|
||||
node --version
|
||||
fi
|
||||
|
||||
install:
|
||||
- yarn --frozen-lockfile $YARN_EXTRA_ARGS
|
||||
- yarn link --frozen-lockfile $YARN_EXTRA_ARGS || true
|
||||
- yarn link webpack --frozen-lockfile $YARN_EXTRA_ARGS
|
||||
|
||||
script: yarn travis:$JOB_PART
|
||||
|
||||
after_success:
|
||||
- cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose
|
||||
- bash <(curl -s https://codecov.io/bash) -F $JOB_PART -X gcov
|
||||
- rm -f .jest-cache/haste-map* .jest-cache/perf-cache*
|
||||
|
||||
notifications:
|
||||
slack:
|
||||
secure: JduSdKWwbnLCwo7Z4E59SGE+Uw832UwnXzQiKEpg1BV45MYDPRiGltly1tRHmPh9OGjvGx3XSkC2tNGOBLtL4UL2SCkf012x0t7jDutKRfcv/njynl8jk8l+UhPmaWiHXDQAgGiiKdL4RfzPLW3HeVHCOWm0LKMzcarTa8tw+rE=
|
|
@ -29,7 +29,7 @@ matrix:
|
|||
test_script:
|
||||
- node --version
|
||||
- yarn --version
|
||||
- cmd: set JEST=--maxWorkers=2 --cacheDirectory .jest-cache
|
||||
- cmd: set JEST=--runInBand --cacheDirectory .jest-cache
|
||||
- cmd: yarn appveyor:integration
|
||||
- cmd: yarn cover:report --reporter=lcovonly
|
||||
- cmd: yarn unlink webpack
|
||||
|
|
|
@ -35,7 +35,7 @@ jobs:
|
|||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
export JEST_JUNIT_OUTPUT_NAME=basic-junit.xml
|
||||
yarn test:basic --ci --reporters=default --reporters=jest-junit
|
||||
yarn test:basic --ci --runInBand --reporters=default --reporters=jest-junit
|
||||
export JEST_JUNIT_OUTPUT_NAME=unit-junit.xml
|
||||
yarn test:unit --ci --reporters=default --reporters=jest-junit
|
||||
displayName: "Run basic tests"
|
||||
|
@ -138,7 +138,7 @@ jobs:
|
|||
- script: yarn link webpack --frozen-lockfile
|
||||
displayName: "Link webpack into node_modules"
|
||||
- script: |
|
||||
yarn cover:integration --ci --maxWorkers=2 --reporters=default --reporters=jest-junit
|
||||
yarn cover:integration --ci --runInBand --reporters=default --reporters=jest-junit
|
||||
yarn cover:merge
|
||||
displayName: "Run tests with coverage"
|
||||
- task: PublishTestResults@2
|
||||
|
@ -193,7 +193,7 @@ jobs:
|
|||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
yarn cover:integration --ci --maxWorkers=2 --reporters=default --reporters=jest-junit
|
||||
yarn cover:integration --ci --runInBand --reporters=default --reporters=jest-junit
|
||||
yarn cover:merge
|
||||
displayName: "Run tests with coverage"
|
||||
- task: PublishTestResults@2
|
||||
|
@ -245,7 +245,7 @@ jobs:
|
|||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
yarn cover:integration --ci --reporters=default --reporters=jest-junit
|
||||
yarn cover:integration --ci --runInBand --reporters=default --reporters=jest-junit
|
||||
yarn cover:merge
|
||||
displayName: "Run tests with coverage"
|
||||
- task: PublishTestResults@2
|
||||
|
|
Loading…
Reference in New Issue