/
.appveyor.yml
61 lines (52 loc) · 1.14 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
image:
- Ubuntu
- Visual Studio 2015
branches:
only:
- master
environment:
matrix:
- nodejs_version: '8'
- nodejs_version: '10'
- nodejs_version: '11'
# Fail on first error
matrix:
fast_finish: true
# Specify cache for yarn in cross platform way
for:
- matrix:
except:
- image: Ubuntu
cache:
- "%LOCALAPPDATA%\\Yarn"
- matrix:
only:
- image: Ubuntu
cache:
- '$HOME/.cache/yarn'
shallow_clone: true
install:
# Install specified version of Node.JS (cross platform capable way)
- cmd: powershell Install-Product node $env:nodejs_version
- sh: nvm install $nodejs_version
# Initiating a git repository in the current project
- sh: git init
- cmd: git init
# Set execution flag on script that runs inside docker
- sh: chmod +x ./scripts/build-prod.sh
# install dependencies
- yarn install
- yarn build
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- yarn --version
- node --version
- npm --version
# Run all tests
- yarn lint
- yarn doc
- yarn test:unit
- yarn test:integration
# Don't actually build.
build: off