forked from cypress-io/cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
105 lines (98 loc) · 6.54 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
branches:
only:
- master
- develop
- /win*/
# https://www.appveyor.com/docs/lang/nodejs-iojs/
environment:
# use matching version of Node.js
nodejs_version: "8.9.3"
# encode secure variables which will NOT be used
# in pull requests
# https://www.appveyor.com/docs/build-configuration/#secure-variables
# the variables can be encrypted at
# https://ci.appveyor.com/tools/encrypt
ci_json:
secure: tf3fK5S5Gh5HGUcDo3eGw7nqdcFU/4A+2s3JJovmn/eA0p9dEspjPFp7G1I9BxdUc4OoCeJ3dSSrCQ1BPIzb/bzK6aQqAZQWNcJ1sanoIiF0QUPbiW40Js3xpWylIh8qutVoaWtZz5a1ygg9sJmAYR7qB5+aQqQNA55TBKkUCydXpnDBfWuagb6d/7cblULsXasvvji3RIoxWTKd8HmaD/xxqONjPAJ3IJsiDTaWc5S9bAgV8/IYa7YZaQm5vpTTsWU5IGwkA1l9yMu7j+7BSNK9esvAYyKsx7kUV9jiVFo=
# for uploading built binary to S3 bucket
aws_credentials_json:
secure: ttGzd2/rW+i8H+pozcFxzZKU07B5INL8+LjD4vCOKes+tI6EaKhrLvAQ9xT7r+e1oTWbC8olZQ96ZZ8P5Ve8pIpG8oe1ITMs5f50iXaKULfwIcJOm+G8a3pkMRZOWa0wGs7/sKtRSyIpMFRfCOIl8TePBKEgeRtVzixBqSuyYLn/u2dz0z8uHeJDq/H1kJlI
# CDN control
CF_DOMAIN: "cypress.io"
CF_EMAIL:
secure: +kZOcImCZVZJv/e/hQc3gvJ6xXSH88qg46cMwKn8mRo=
CF_TOKEN:
secure: d8SQfJ2r6qrKDjYWoFg3AzgY7aL6hTuE5OIlRr0TXkcXkZzdmYCujfzIYcCQfpZg
# authenticate as Cypress bot when posting commit status checks
GH_APP_ID:
secure: oR0RVDbv6GKej4wwjkz7Zw==
GH_INSTALLATION_ID:
secure: tAoqu4zIgZUxOfW0u9YQgw==
GH_PRIVATE_KEY:
secure: msLmlIBnkNovqrqTeCqa7ZPjETyS8Xn4JLuiRMWYK7gZBTO66pNnFaoeqwPFwH+o9fhC3NYlr9IFIeChXEtMJljqRfZbvfKbgbQGlVsFrg4GdFOKE24w7Hq/M0pjeFsffJ4gr+tFEya4Hri010Z8tD8kFeAv6S6y4rnOz20wambNNMb3C10Jrw5kHk4ED0h+KxggFFgmC8E+23bLuYqyXhgWHiDMDuFYuZTg6di/YExVNTo54bv8vakbdpAiX6VA4sy8jcu9134vygwPyEgDbJVIHYTbQQdiEcKc5V7+7ccF5dOZCDu3YQ0gG5CTcCKlMSts/nYeTnyRL1nGMK63HgzejGy7w7uUigo50tEIt0NQNpx03S8A65LjTJsPKjmIrh3KTPsxmrnFBhlDE4kdLNsQYptRe3oGtIJ/8DpyinAmbLVkq1xV66lQ9EqQjiJlKdK+X56EZYYBu9F49i9MfcZTtlK9uDHdzZAZJagZzIEJ4T+6sl2Q/gDMXwB7OO1+CAe3oUpaLNda9T4APzplzpFdSePTjtDI/5bzXD6DUs5xhuWqCDo+tZCHW7uBYdGTD3mNf1H1Su+HTHB0G6goHyljwBrKvRB5dm4jEYGiTt8ndxmVhZd/bzI9Uftd4mx0hJeselkXCFrmzTVGpFa9wbpbD6A1TVKwwBSbXlj11ON7ktAaPClvRAjCcwyWt0YglXlUC8tMXCml7mmFNZx8moqAAC8uf8ZG8+wI9ip1vjCsPs/yE/RY/yayWkjfYFWnh/LDmLV20gYnlk0YCkezM43lm1+dcNfI1DrAyu3sMh3xxnGXUZt2CdKfYCDRn8u32MnXkgdHre//6o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Am6V+DhyvmlAonXGq
platform:
- x64
- x86
# https://www.appveyor.com/docs/build-cache/
# hmm, seems there is NPM on windows problem
# with installing over cached folder
# https://github.com/npm/npm/issues/17747
# cache:
# - node_modules
# # todo: cache node_modules in each package
# Install scripts. (runs after repo cloning)
install:
- ps: Install-Product node $env:nodejs_version $env:platform
# upgrade npm
- npm install -g npm@6
- npm install -g @bahmutov/print-env@1
# Output useful info for debugging.
- node --version
- node --print process.arch
- npm --version
# prints all public variables relevant to the build
- print-env Platform
- npm run check-node-version
- print-env APPVEYOR
# prints if we have sensitive variables that start with a prefix GH
# which are used to trigger other projects
- has-env GH
# clean cache to prevent install permission issues
- npm cache clean --force
# install root modules only, and retry automatically if install fails
- npm run preinstall
- npm install --ignore-scripts || npm install --ignore-scripts || npm install --ignore-scripts
- .\node_modules\.bin\print-arch
# because we skipped scripts, we need to do
# everything from "postinstall" script as commands
- npm run link
# install every package one by one
# try to do several attempts, because on AppVeyor random install errors happen
- npm run all install -- --serial || npm run all install -- --serial || npm run all install -- --serial
# - npm prune
# - npm run all prune -- --serial
- npm run all build -- --serial
# Post-install test scripts.
test_script:
# Output useful info for debugging.
# beware of echo-ing environment variables that may have batch syntax (e.g. commit messages)
- node --version
- npm --version
- 7z
- cd packages/launcher && node index.js && cd ../..
# make sure mocha runs
- npm run test-mocha
# make sure our snapshots are compared correctly
# - npm run test-mocha-snapshot
# the other larger tests
- echo Building Windows NPM package %NEXT_DEV_VERSION%
- npm --no-git-tag-version version %NEXT_DEV_VERSION%
- cd cli
- npm install
- npm run build
- cd build
- npm pack
- cd ../..
- node ./scripts/win-appveyor-build.js
# Don't actually build.
build: off