forked from kulshekhar/ts-jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
48 lines (43 loc) · 1.19 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
# http://www.appveyor.com/docs/appveyor-yml
version: '{build}'
pull_requests:
do_not_increment_build_number: true
skip_tags: true
shallow_clone: true
build: off
deploy: off
platform: x64
branches:
except:
- gh-pages
# clear the cache if commit contains given text
init:
- ps: IF ($env:APPVEYOR_REPO_COMMIT_MESSAGE -Match "\[clean ci-cache\]" ) {$env:APPVEYOR_CACHE_SKIP_RESTORE = "true"}
- ps: IF ($env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED -Match "\[clean ci-cache\]") {$env:APPVEYOR_CACHE_SKIP_RESTORE = "true"}
# Install scripts. (runs after repo cloning)
install:
- ps: Install-Product node 8 x64
- npm install -g npm@^5
# Typical npm stuff.
# - set CI=true
# Our E2E work dir
- set TS_JEST_E2E_WORKDIR=%APPDATA%\ts-jest-e2e
- set TS_JEST_E2E_OPTIMIZATIONS=1
- npm ci --ignore-scripts
- npm run clean -- --when-ci-commit-message
cache:
- .cache -> package.json
- '%APPDATA%\npm-cache'
- '%APPDATA%\ts-jest-e2e\__templates__'
# Post-install test scripts.
test_script:
- cmd: npm run test -- --runInBand
# skip_commits:
# files:
# - 'docs/**/*'
# - '**/*.md'
# - .gitignore
# - .gitattributes
# - .travis.yml
# - icon.png
# - commitlint.config.js