From 97614b475a00dc1081d26c85420a331c93352557 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 5 Jul 2021 23:27:06 +0200 Subject: [PATCH] use runInBand in CI --- .github/workflows/test.yml | 6 ++-- .travis.yml | 74 -------------------------------------- appveyor.yml | 2 +- azure-pipelines.yml | 8 ++--- 4 files changed, 8 insertions(+), 82 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 144e4829e..b509817a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b2f09b31b..000000000 --- a/.travis.yml +++ /dev/null @@ -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= diff --git a/appveyor.yml b/appveyor.yml index e9d12cba0..c29c8d846 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 766656355..06b20e909 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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