|
1 | 1 | # http://www.appveyor.com/docs/appveyor-yml |
2 | | -platform: |
3 | | - - x64 |
4 | | -init: |
5 | | -- ps: IF ($env:APPVEYOR_REPO_COMMIT_MESSAGE -Match "\[clean ci-cache\]" ) {$env:APPVEYOR_CACHE_SKIP_RESTORE = "true"} |
6 | | -- ps: IF ($env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED -Match "\[clean ci-cache\]") {$env:APPVEYOR_CACHE_SKIP_RESTORE = "true"} |
7 | | - |
8 | | -# Set build version format here instead of in the admin panel. |
9 | | -version: "{build}" |
10 | | - |
11 | | -# branches to build |
| 2 | +version: '{build}' |
| 3 | +pull_requests: |
| 4 | + do_not_increment_build_number: true |
| 5 | +skip_tags: true |
| 6 | +shallow_clone: true |
| 7 | +build: off |
| 8 | +deploy: off |
| 9 | +platform: x64 |
12 | 10 | branches: |
13 | | - # blacklist |
14 | 11 | except: |
15 | 12 | - gh-pages |
16 | 13 |
|
17 | | -# Test against these versions of Node.js. |
18 | | -environment: |
19 | | - matrix: |
20 | | - - nodejs_version: "8" |
21 | | - |
22 | | -matrix: |
23 | | - fast_finish: true # set this flag to immediately finish build once one of the jobs fails. |
| 14 | +# clear the cache if commit contains given text |
| 15 | +init: |
| 16 | +- ps: IF ($env:APPVEYOR_REPO_COMMIT_MESSAGE -Match "\[clean ci-cache\]" ) {$env:APPVEYOR_CACHE_SKIP_RESTORE = "true"} |
| 17 | +- ps: IF ($env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED -Match "\[clean ci-cache\]") {$env:APPVEYOR_CACHE_SKIP_RESTORE = "true"} |
24 | 18 |
|
25 | 19 | # Install scripts. (runs after repo cloning) |
26 | 20 | install: |
27 | | - # Get the latest stable version of Node 0.STABLE.latest |
28 | | - - ps: Install-Product node $env:nodejs_version x64 |
| 21 | + - ps: Install-Product node 8 x64 |
| 22 | + - npm install -g npm@^5 |
29 | 23 | # Typical npm stuff. |
30 | 24 | - set CI=true |
31 | 25 | # Our E2E work dir |
32 | 26 | - set TS_JEST_E2E_WORKDIR=%APPDATA%\ts-jest-e2e |
33 | | - - npm install -g npm@^5 |
34 | 27 | - npm ci --ignore-scripts |
35 | 28 | - npm run clean -- --when-ci-commit-message |
36 | 29 |
|
37 | 30 | cache: |
38 | | - - '%APPDATA%\npm-cache -> package.json' |
| 31 | + - 'node_modules -> package.json' |
| 32 | + - '%APPDATA%\npm-cache' |
| 33 | + - '%APPDATA%\npm' |
39 | 34 | - '%APPDATA%\ts-jest-e2e\__templates__' |
40 | 35 |
|
41 | 36 | # Post-install test scripts. |
42 | 37 | test_script: |
43 | 38 | - cmd: npm run test |
44 | 39 |
|
45 | | -# Don't actually build. |
46 | | -build: off |
47 | | - |
48 | | -# Uses GitHub API to download the repo without git history |
49 | | -# @see: https://www.appveyor.com/docs/how-to/repository-shallow-clone/#downloading-repository-via-github-or-bitbucket-api |
50 | | -shallow_clone: true |
51 | | - |
52 | | -skip_commits: |
53 | | - files: |
54 | | - - 'docs/**/*' |
55 | | - - '**/*.md' |
56 | | - - .gitignore |
57 | | - - .gitattributes |
58 | | - - .travis.yml |
59 | | - - icon.png |
60 | | - - commitlint.config.js |
| 40 | +# skip_commits: |
| 41 | +# files: |
| 42 | +# - 'docs/**/*' |
| 43 | +# - '**/*.md' |
| 44 | +# - .gitignore |
| 45 | +# - .gitattributes |
| 46 | +# - .travis.yml |
| 47 | +# - icon.png |
| 48 | +# - commitlint.config.js |
0 commit comments