forked from cypress-io/cypress-example-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
39 lines (35 loc) · 1.24 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# https://www.appveyor.com/docs/lang/nodejs-iojs/
# Test against the latest version of this Node.js version
environment:
nodejs_version: "10"
# Install scripts. (runs after repo cloning)
install:
- ps: Install-Product node $env:nodejs_version
# Output useful info for debugging.
- node --version
- npm --version
- node -e "console.log(process.platform)"
- node -e "console.log(process.arch)"
# print cached dependencies
- echo '%AppData%\npm-cache'
- echo '%USERPROFILE%\AppData\Local\Cypress\Cache'
- ls '%AppData%\npm-cache' || true
- ls '%USERPROFILE%\AppData\Local\Cypress\Cache' || true
- npm ci
# install global bin-up
# to avoid problems with finding tool paths on Windows
- npm i -g bin-up
cache:
# cache NPM packages and Cypress binary
# https://www.appveyor.com/docs/build-cache/
# https://docs.npmjs.com/files/folders.html#cache
# https://on.cypress.io/caching
- '%AppData%\npm-cache'
- '%USERPROFILE%\AppData\Local\Cypress\Cache'
# Note: by default cache is only saved for successful builds
# you can save cache from the failed builds
# using APPVEYOR_SAVE_CACHE_ON_ERROR: true environment variable
test_script:
- npm run test:ci:windows
# Don't actually build, we are only interested in tests
build: off