forked from FormidableLabs/serverless-jetpack
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
88 lines (79 loc) · 3.85 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
environment:
matrix:
# Limit windows builds because they're 15 mins in serial.
# - nodejs_version: "10"
- nodejs_version: "12"
# - nodejs_version: "13"
matrix:
fast_finish: true
branches:
only:
- master
install:
- ps: Install-Product node $env:nodejs_version x64
# Fail if lockfile outdated.
# https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-frozen-lockfile
- yarn install --frozen-lockfile
# Detect if `test/packages/*/*/node_modules` exists in any form and skip
# installs on a per-directory basis.
- yarn benchmark:install --skip-if-exists
test_script:
# Info
- node --version
- yarn --version
- npm --version
# Build
- yarn run check
- yarn test:cli
- yarn benchmark --parallel
- yarn benchmark:test
# Don't actually build.
build: off
# Note: Enable `Save build cache in Pull Requests` in settings to get PR cache.
# See: https://www.appveyor.com/docs/build-cache/
cache:
# Root project
- node_modules -> yarn.lock
# Test dependencies
# ```sh
# $ ls test/packages/*/*/{yarn.lock,package-lock.json} | cat | sort | sed 's/\//\\/g' && \
# ls test/packages/*/*/{lib,functions,layers/with-deps}/*/package-lock.json | cat | sort | sed 's/\//\\/g'
# ```
#
# Then regex in VS code:
# - search: `^(test\\.*)\\(yarn\.lock|package-lock\.json)$`
# - replace: ` - $1\\node_modules -> $1\\$2`
#
# Then add in these complicated extras pointing to project (not dir) yarn.lock
# ```
# $ find test/packages/*/yarn/{lib,functions,layers/with-deps}/* -type d -name node_modules -maxdepth 1 | sort | sed 's/\//\\/g'
# ```
#
# Then regex in VS code:
# - search: `^(test\\.*)\\(yarn)\\(.*)`
# - replace: ` - $1\\$2\\$3 -> $1\\$2\\yarn.lock`
- test\packages\complex\npm\node_modules -> test\packages\complex\npm\package-lock.json
- test\packages\complex\yarn\node_modules -> test\packages\complex\yarn\yarn.lock
- test\packages\dashboard\npm\node_modules -> test\packages\dashboard\npm\package-lock.json
- test\packages\dashboard\yarn\node_modules -> test\packages\dashboard\yarn\yarn.lock
- test\packages\huge\npm\node_modules -> test\packages\huge\npm\package-lock.json
- test\packages\huge\yarn\node_modules -> test\packages\huge\yarn\yarn.lock
- test\packages\huge-prod\npm\node_modules -> test\packages\huge-prod\npm\package-lock.json
- test\packages\huge-prod\yarn\node_modules -> test\packages\huge-prod\yarn\yarn.lock
- test\packages\individually\npm\node_modules -> test\packages\individually\npm\package-lock.json
- test\packages\individually\yarn\node_modules -> test\packages\individually\yarn\yarn.lock
- test\packages\monorepo\npm\node_modules -> test\packages\monorepo\npm\package-lock.json
- test\packages\monorepo\yarn\node_modules -> test\packages\monorepo\yarn\yarn.lock
- test\packages\simple\npm\node_modules -> test\packages\simple\npm\package-lock.json
- test\packages\simple\yarn\node_modules -> test\packages\simple\yarn\yarn.lock
- test\packages\webpack\npm\node_modules -> test\packages\webpack\npm\package-lock.json
- test\packages\webpack\yarn\node_modules -> test\packages\webpack\yarn\yarn.lock
- test\packages\complex\npm\layers\with-deps\nodejs\node_modules -> test\packages\complex\npm\layers\with-deps\nodejs\package-lock.json
- test\packages\monorepo\npm\functions\another\node_modules -> test\packages\monorepo\npm\functions\another\package-lock.json
- test\packages\monorepo\npm\functions\base\node_modules -> test\packages\monorepo\npm\functions\base\package-lock.json
- test\packages\monorepo\npm\lib\camel\node_modules -> test\packages\monorepo\npm\lib\camel\package-lock.json
- test\packages\complex\yarn\layers\with-deps\nodejs\node_modules -> test\packages\complex\yarn\yarn.lock
- test\packages\monorepo\yarn\functions\base\node_modules -> test\packages\monorepo\yarn\yarn.lock
# User-wide
- '%LOCALAPPDATA%/Yarn'
- '%APPDATA%\npm-cache'