forked from Ks89/angular-modal-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
226 lines (182 loc) · 5.59 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# AppVeyor file
# based on the official example https://www.appveyor.com/docs/appveyor-yml/
#---------------------------------#
# general configuration #
#---------------------------------#
# Build version format
# you can use {branch} name in version format too
version: 1.0.{build}-{branch}
# branches to build
branches:
# whitelist
#only:
# - master
# - production
# blacklist
except:
- gh-pages
# Do not build on tags (GitHub and BitBucket)
#skip_tags: true
# Skipping commits affecting specific files (GitHub only). More details here: /docs/appveyor-yml
#skip_commits:
# files:
# - docs/*
# - '**/*.html'
# Including commits affecting specific files (GitHub only). More details here: /docs/appveyor-yml
#only_commits:
# files:
# - Project-A/
# - Project-B/
# Do not build feature branch with open Pull Requests
#skip_branch_with_pr: true
# Maximum number of concurrent jobs for the project
#max_jobs: 1
#---------------------------------#
# environment configuration #
#---------------------------------#
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# fetch repository as zip archive
#shallow_clone: true # default is false
# set clone depth
clone_depth: 5 # clone entire repository history if not defined
# environment variables
environment:
matrix:
- nodejs_version: "7"
NODE_ENV: test
CI: yes
APPVEYOR: yes
CODECLIMATE_REPO_TOKEN:
secure: 599YTB1w26VDxTafTrBNso5CW8BnztpspX2ajIcowkhI249QaKE+nOjN7oQSN1MMm9k7ekutSCpU185qsG4yvVpg4prdOQUs+VkNtLQgz9s=
COVERALLS_REPO_TOKEN:
secure: Edx2E7hPwjoxiEWq2pHhd7iugZKunJrlX/OVlja2dOjGwXe6/QNgJ1lrEdeEFDwB
# this is how to allow failing jobs in the matrix
matrix:
fast_finish: true # set this flag to immediately finish build once one of the jobs fails.
# build cache to preserve files/folders between builds
cache: node_modules -> package.json
# enable service required for build/tests
#services:
# scripts that run after cloning repository
install:
# by default, all script lines are interpreted as batch
- echo Start install
# to run script as a PowerShell command prepend it with ps:
- ps: Write-Host 'Start install in PowerShell'
# batch commands start from cmd:
- cmd: echo Start install in cmd
# install nodejs and dependencies both global and local
# use appveyor-retry to retry if npm install fails
- cmd: appveyor-retry powershell Install-Product node $env:nodejs_version
- npm install -g npm@5.3
- set PATH=%APPDATA%\npm;%PATH%
- npm install -g @angular/cli@latest
- npm install -g codeclimate-test-reporter
- npm install
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform:
- x86
- x64
build: off
# scripts to run before build
before_build:
# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
before_package:
# scripts to run after build
after_build:
# to run your custom scripts instead of automatic MSBuild
build_script:
# Output useful info for debugging.
- node --version && npm --version
- ps: "npm --version # PowerShell" # Pass comment to PS for easier debugging
# prepare
- npm run clean:all
- cd demo/systemjs
- npm install
- cd ../..
- cd demo/webpack
- npm install
- cd ../..
- cd demo/angular-cli
- npm install
- cd ../..
# build library
- npm run build:lib
# build official webpack example
- cd demo/webpack
- npm run build:dev
- npm run build:prod
- npm run build:prod:aot
- npm test
- cd ../..
# build official angular-cli example
- cd demo/angular-cli
- npm run build
- cd ../..
# build main angular-cli with ng-packagr
- npm run build
# - npm test # TODO
#---------------------------------#
# tests configuration #
#---------------------------------#
# scripts to run before tests
before_test:
# scripts to run after tests
after_test:
test_script:
# Output useful info for debugging.
- node --version && npm --version
- ps: "npm --version # PowerShell" # Pass comment to PS for easier debugging
# run tests
# - npm test # FIXME
#---------------------------------#
# artifacts configuration #
#---------------------------------#
#artifacts:
#---------------------------------#
# deployment configuration #
#---------------------------------#
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
# provider names are case-sensitive!
#deploy:
# scripts to run before deployment
before_deploy:
# scripts to run after deployment
after_deploy:
# to run your custom scripts instead of provider deployments
deploy_script:
#---------------------------------#
# global handlers #
#---------------------------------#
# on successful build
on_success:
# - npm run docs # FIXME
- npm run compodoc
# - codeclimate-test-reporter < .\coverage\lcov.info # FIXME
# - node .\node_modules\codeclimate-test-reporter\bin\codeclimate.js < .\coverage\lcov.info # FIXME
# on build failure
#on_failure:
# - do something
# after build failure or success
#on_finish:
# - do something
#---------------------------------#
# notifications #
#---------------------------------#
#notifications:
# # Slack
# - provider: Slack
# incoming_webhook: http://incoming-webhook-url
#
# # ...or using auth token
#
# - provider: Slack
# auth_token:
# secure: kBl9BlxvRMr9liHmnBs14A==
# channel: development
# template: "{message}, {commitId}, ..."