forked from ember-cli/ember-cli-update
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
45 lines (39 loc) · 1.09 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
environment:
matrix:
# node 12.18 has a regression
# npm ERR! cb.apply is not a function
# - nodejs_version: "12"
- nodejs_version: "12.17"
DEBUG: "ember-cli-update,boilerplate-update,git-diff-apply"
branches:
only:
- master
# Fix line endings in Windows. (runs before repo cloning)
init:
- git config --global core.autocrlf true
# Install scripts. (runs after repo cloning)
install:
- ps: Install-Product node $env:nodejs_version
# for test cache hits
- npm i -g [email protected]
- ps: >-
[Environment]::SetEnvironmentVariable("NODE_LTS", "true", "User")
- RefreshEnv
- where npx
# don't accidentally use the global npx
- ps: rm "C:\Program Files (x86)\nodejs\npx*"
- ps: rm C:\Users\appveyor\AppData\Roaming\npm\npx*
# test that we can't find it
- ps: if (gcm npx) { exit }
- npm ci
# Post-install test scripts.
test_script:
- node --version
- npm --version
- npm run test:bin
- npm run test:command
# http://help.appveyor.com/discussions/questions/1310-delete-cache
cache:
- node_modules -> package.json
# Don't actually build.
build: off