Fix handling of non-zero exit codes
This commit is contained in:
parent
599aa1fe12
commit
1252b89a6f
|
@ -11,17 +11,20 @@ jobs:
|
|||
curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
displayName: "Install Yarn"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
node -v
|
||||
yarn -v
|
||||
displayName: "Print versions"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
yarn --frozen-lockfile
|
||||
yarn link --frozen-lockfile || true
|
||||
yarn link webpack --frozen-lockfile
|
||||
displayName: "Install dependencies"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
yarn test:basic --ci
|
||||
yarn test:unit --ci
|
||||
|
@ -38,17 +41,20 @@ jobs:
|
|||
curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
displayName: "Install Yarn"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
node -v
|
||||
yarn -v
|
||||
displayName: "Print versions"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
yarn --frozen-lockfile
|
||||
yarn link --frozen-lockfile || true
|
||||
yarn link webpack --frozen-lockfile
|
||||
displayName: "Install dependencies"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
yarn lint
|
||||
displayName: "Run linting"
|
||||
|
@ -76,17 +82,20 @@ jobs:
|
|||
curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
displayName: "Install Yarn"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
node -v
|
||||
yarn -v
|
||||
displayName: "Print versions"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
yarn --frozen-lockfile
|
||||
yarn link --frozen-lockfile || true
|
||||
yarn link webpack --frozen-lockfile
|
||||
displayName: "Install dependencies"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
yarn cover:init
|
||||
yarn cover:integration "test/(?!TestCases)" --ci --maxWorkers=2
|
||||
|
@ -120,17 +129,20 @@ jobs:
|
|||
curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
displayName: "Install Yarn"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
node -v
|
||||
yarn -v
|
||||
displayName: "Print versions"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
yarn --frozen-lockfile
|
||||
yarn link --frozen-lockfile || true
|
||||
yarn link webpack --frozen-lockfile
|
||||
displayName: "Install dependencies"
|
||||
- script: |
|
||||
set -e
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
yarn cover:init
|
||||
yarn cover:integration "test/(?!TestCases)" --ci
|
||||
|
@ -164,14 +176,17 @@ jobs:
|
|||
npm install --global yarn
|
||||
displayName: "Install Yarn"
|
||||
- script: |
|
||||
set -e
|
||||
node -v
|
||||
yarn -v
|
||||
displayName: "Print versions"
|
||||
- script: |
|
||||
set -e
|
||||
yarn --frozen-lockfile
|
||||
yarn link --frozen-lockfile || true
|
||||
yarn link webpack --frozen-lockfile
|
||||
displayName: "Install dependencies"
|
||||
- script:
|
||||
- script: |
|
||||
set -e
|
||||
yarn cover:init && yarn cover:integration "test/(?!TestCases)" --ci --maxWorkers=2 && move coverage\\coverage-final.json coverage\\coverage-final-1.json && yarn cover:integration "test/TestCasesD" --ci --maxWorkers=2 && move coverage\\coverage-final.json coverage\\coverage-final-2.json && yarn cover:integration "test/TestCases(?!D)" --ci --maxWorkers=2 && move coverage\\coverage-final.json coverage\\coverage-final-3.json
|
||||
displayName: "Run tests with coverage"
|
||||
|
|
Loading…
Reference in New Issue