forked from dwwhalen/cypress-robot-todomvc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
38 lines (32 loc) · 1.13 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
# https://www.appveyor.com/docs/lang/nodejs-iojs/
# Test against the latest version of this Node.js version
environment:
nodejs_version: "12"
# Install scripts. (runs after repo cloning)
install:
- ps: Install-Product node $env:nodejs_version
# Output useful info for debugging.
# npm should be > v6 (for "npm ci" command and good package lock handling)
- node --version
- npm --version
# fix installing todomvc-common over git, use HTTPS instead of SSH
# https://stackoverflow.com/a/68185705/3474615
- 'git config --global url."https://".insteadOf ssh://'
- npm ci
- npx cypress cache path
cache:
# cache NPM packages and Cypress binary
- '%AppData%\npm'
- '%USERPROFILE%\AppData\Local\Cypress\Cache'
# Post-install test scripts.
test_script:
- npx cypress version
- npx cypress verify
- ps: $ServerProcess = Start-Process npm start -PassThru
# check that we can pass urls to the test runner
# https://github.com/cypress-io/cypress/issues/5466
- npm run cypress:run -- --record --config baseUrl=http://localhost:8888
on_finish:
- ps: Stop-Process -Id $ServerProcess.Id
# Don't actually build.
build: off