Skip to content

Commit 3665609

Browse files
authored
Merge pull request #734 from huafu/appveyor-optimizations
improves AppVeyor's config a bit
2 parents 0f31b42 + 45d44d1 commit 3665609

1 file changed

Lines changed: 26 additions & 38 deletions

File tree

appveyor.yml

Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,48 @@
11
# 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
1210
branches:
13-
# blacklist
1411
except:
1512
- gh-pages
1613

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"}
2418

2519
# Install scripts. (runs after repo cloning)
2620
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
2923
# Typical npm stuff.
3024
- set CI=true
3125
# Our E2E work dir
3226
- set TS_JEST_E2E_WORKDIR=%APPDATA%\ts-jest-e2e
33-
- npm install -g npm@^5
3427
- npm ci --ignore-scripts
3528
- npm run clean -- --when-ci-commit-message
3629

3730
cache:
38-
- '%APPDATA%\npm-cache -> package.json'
31+
- 'node_modules -> package.json'
32+
- '%APPDATA%\npm-cache'
33+
- '%APPDATA%\npm'
3934
- '%APPDATA%\ts-jest-e2e\__templates__'
4035

4136
# Post-install test scripts.
4237
test_script:
4338
- cmd: npm run test
4439

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

Comments
 (0)