-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathappveyor.yml
More file actions
104 lines (82 loc) · 2.53 KB
/
appveyor.yml
File metadata and controls
104 lines (82 loc) · 2.53 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
environment:
nodejs_version: 10
matrix:
- job_name: Build
appveyor_build_worker_image: Ubuntu
- job_name: Simple NodeJS
appveyor_build_worker_image: Ubuntu
- job_name: Simple Typescript
appveyor_build_worker_image: Ubuntu
- job_name: Simple Webpack
appveyor_build_worker_image: Ubuntu
matrix:
fast_finish: true
init:
- appveyor version
for:
-
matrix:
only:
- job_name: Build
build_script:
- sh: nvm install $nodejs_version
- sh: npm install
- sh: npm test
- sh: NODE_ENV=production npm run build-ci
cache:
- node_modules -> package.json
artifacts:
- path: build
name: build
type: zip
-
matrix:
only:
- job_name: Simple NodeJS
environment:
USERNAME: compassjs-ci-user
BASEDOM: apollo.compass-stack.com
build_script:
- sh: cd examples/simple-nodejs
- sh: nvm install $nodejs_version
- sh: npm install
- sh: (cd ../.. && npm link) && npm link compass.js
- sh: "echo \"const config = { basedom: '$BASEDOM', jid: '$USERNAME@uc.$BASEDOM', password: '$CI_USER_PASSWORD' }; module.exports = config;\" > config.js"
-
matrix:
only:
- job_name: Simple Typescript
environment:
USERNAME: compassjs-ci-user
BASEDOM: apollo.compass-stack.com
build_script:
- sh: cd examples/simple-typescript
- sh: nvm install $nodejs_version
- sh: npm install
- sh: "echo \"const config = { basedom: '$BASEDOM', jid: '$USERNAME@uc.$BASEDOM', password: '$CI_USER_PASSWORD' }; module.exports = config;\" > config.js"
- sh: npm run build
cache:
- examples/simple-typescript/node_modules -> examples/simple-typescript/package.json
artifacts:
- path: examples/simple-typescript/dist
name: simple-typescript-build
type: zip
-
matrix:
only:
- job_name: Simple Webpack
environment:
USERNAME: compassjs-ci-user
BASEDOM: apollo.compass-stack.com
build_script:
- sh: cd examples/simple-webpack
- sh: nvm install $nodejs_version
- sh: npm install
- sh: "echo \"const config = { basedom: '$BASEDOM', jid: '$USERNAME@uc.$BASEDOM', password: '$CI_USER_PASSWORD' }; module.exports = config;\" > config.js"
- sh: pwd && NODE_DEBUG=module npm run-script build
cache:
- examples/simple-webpack/node_modules -> examples/simple-webpack/package.json
artifacts:
- path: examples/simple-webpack/dist
name: simple-webpack-build
type: zip