Skip to content

Commit a51b817

Browse files
committed
chore: adding appveyor config
1 parent 5a5bbb2 commit a51b817

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.appveyor.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
image:
2+
- Ubuntu
3+
4+
environment:
5+
matrix:
6+
- nodejs_version: '8'
7+
- nodejs_version: '10'
8+
9+
# Fail on first error
10+
matrix:
11+
fast_finish: true
12+
13+
# Specify cache for yarn in cross platform way
14+
for:
15+
- matrix:
16+
except:
17+
- image: Ubuntu
18+
cache:
19+
- "%LOCALAPPDATA%\\Yarn"
20+
- matrix:
21+
only:
22+
- image: Ubuntu
23+
cache:
24+
- '$HOME/.cache/yarn'
25+
26+
shallow_clone: true
27+
28+
install:
29+
# Install specified version of Node.JS (cross platform capable way)
30+
- cmd: powershell Install-Product node $env:nodejs_version
31+
- sh: nvm install $nodejs_version
32+
33+
# Set execution flag on script that runs inside docker
34+
- sh: chmod +x ./scripts/build-prod.sh
35+
36+
# install dependencies
37+
- yarn install --ignore-optional
38+
- yarn build
39+
40+
# Post-install test scripts.
41+
test_script:
42+
# Output useful info for debugging.
43+
- yarn --version
44+
- node --version
45+
- npm --version
46+
# Run all tests
47+
- yarn test
48+
49+
# Don't actually build.
50+
build: off

0 commit comments

Comments
 (0)