Files
yarn/appveyor.yml
Mark Stacey 0155739c71 ci(perf): Set maxWorkers to match the number of cores available (#6249)
AppVeyor VMs have 2 cores, yet we were telling Jest to use 3 workers. Changing it to 2 should reduce
overhead and speed up the test suite.
2018-08-09 15:42:14 +01:00

44 lines
1.1 KiB
YAML

environment:
matrix:
- node_version: '8'
- node_version: '10'
branches:
only:
- master
- '/v[0-9]+(\.[0-9]+)*/'
install:
- ps: 'Install-Product node $env:node_version'
- yarn install --frozen-lockfile
build_script:
- ps: >-
if ($env:APPVEYOR_REPO_BRANCH -eq 'master') { node
./scripts/set-dev-version.js }
- yarn run build-dist
- yarn run build-win-installer
test_script:
- cmd: |-
SET npm_execpath=%APPVEYOR_BUILD_FOLDER%\bin\yarn.js
node ./node_modules/jest/bin/jest.js --verbose --maxWorkers=2
artifacts:
- path: artifacts/*.msi
name: Installer
cache:
- node_modules
- '%LOCALAPPDATA%/Yarn'
notifications:
- provider: Webhook
url: 'https://nightly.yarnpkg.com/archive_appveyor'
method: POST
headers:
Authorization:
secure: uH4c9HNDdRuL4omqqbTtBq3KgzjGTFmpvPdiNuk9391Z0YXRoRLA1Ptpa3seZ0Pt
on_build_failure: false
deploy:
- provider: Webhook
url: 'https://nightly.yarnpkg.com/release_appveyor'
authorization:
secure: uH4c9HNDdRuL4omqqbTtBq3KgzjGTFmpvPdiNuk9391Z0YXRoRLA1Ptpa3seZ0Pt
on:
branch: '/v[0-9]+(\.[0-9]+)*/'
appveyor_repo_tag: true