This repository was archived by the owner on Jun 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappveyor.yml
More file actions
283 lines (219 loc) · 8.19 KB
/
appveyor.yml
File metadata and controls
283 lines (219 loc) · 8.19 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
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 0.0.{build}
# you can use {branch} name in version format too
# version: 1.0.{build}-{branch}
# branches to build
branches:
# whitelist
only:
- main
# blacklist
# except:
# - gh-pages
# Do not build on tags (GitHub and BitBucket)
# skip_tags: true
# # Start builds on tags only (GitHub and BitBucket)
# skip_non_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/
# Maximum number of concurrent jobs for the project
max_jobs: 1
#---------------------------------#
# environment configuration #
#---------------------------------#
# # Build worker image (VM template)
# image: Visual Studio 2015
# scripts that are called at very beginning, before repo cloning
init:
# clone directory
clone_folder: C:/ncodawindows
# fetch repository as zip archive
# shallow_clone: true # default is "false"
# set clone depth
# clone_depth: 1 # clone entire repository history if not defined
# environment variables
environment:
auth_token:
secure: Ile301NnDvTpQ6i1B3Kdgh1hLc9QuiABjJTXPERabJgEnNyBc8ogqUZVYEpdOtio
nodejs_version: "6.3.0"
# 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:
# - packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
# - projectA\libs
# - node_modules # local npm modules
# - '%LocalAppData%\NuGet\Cache'
# scripts that run after cloning repository
install:
- ps: Install-Product node $env:nodejs_version
- git clone --recursive https://github.com/nCoda/julius.git julius
- git clone https://github.com/nCoda/lychee.git lychee
- git clone https://github.com/nCoda/fujian.git fujian
- git clone https://github.com/nCoda/mercurial-hug.git mercurial-hug
- git clone https://github.com/nCoda/ShelfExtender.git ShelfExtender
- git clone https://github.com/nCoda/hgdemo_config.git hgdemo_config
- rm julius\js\electron_main.js
- pip install --upgrade pip
- pip install Cython
- pip install virtualenv
- pip install http://sourceforge.net/projects/py2exe/files/latest/download?source=files
- pip install biplist
- cp electron_main_production.js julius\js\electron_main.js
- cd julius && npm install && npm install --save-dev electron-log && npm install --save-dev electron-rebuild && node_modules\.bin\electron-rebuild --version 1.6.0 && cd ..
# - cd julius && node_modules\.bin\browserify js\ncoda-init.js --outfile js\ncoda-compiled.js && cd ..
- cd julius && node_modules\.bin\lessc css\ncoda\main.less css\ncoda\main.css && cd ..
- virtualenv --system-site-packages backend_venv
- backend_venv\Scripts\activate
- cd mercurial-hug && pip install . && cd ..
- cd lychee && pip install . && cd ..
- cd fujian && pip install . && cd ..
- cd ShelfExtender && pip install . && cd ..
- cd mercurial-hug && pip install . && cd ..
# - cd hgdemo_config && python -m shelfex && cd ..
- mkdir programs
# - cp -r hgdemo_config/repo programs/hgdemo
- pip install pytest
- pip install mock
- python backend\setup.py py2exe
# by default, all script lines are interpreted as batch
- echo This is batch
# to run script as a PowerShell command prepend it with ps:
- ps: Write-Host 'This is PowerShell'
# batch commands start from cmd:
- cmd: echo This is batch again
- cmd: set MY_VAR=12345
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# to add several platforms to build matrix:
#platform:
# - x86
# - Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
# to add several configurations to build matrix:
#configuration:
# - Debug
# - Release
# build:
# parallel: true # enable MSBuild parallel builds
# project: MyTestAzureCS.sln # path to Visual Studio solution or project
# publish_wap: true # package Web Application Projects (WAP) for Web Deploy
# publish_wap_xcopy: true # package Web Application Projects (WAP) for XCopy deployment
# publish_azure: true # package Azure Cloud Service projects and push to artifacts
# publish_nuget: true # package projects with .nuspec files and push to artifacts
# publish_nuget_symbols: true # generate and publish NuGet symbol packages
# include_nuget_references: true # add -IncludeReferencedProjects option while packaging NuGet artifacts
# # MSBuild verbosity level
# # verbosity: quiet|minimal|normal|detailed
# verbosity: normal
# # 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:
# to disable automatic builds
build: off
#---------------------------------#
# tests configuration #
#---------------------------------#
# test:
# assemblies:
# - asm1.dll
# - asm2.dll
# categories:
# - UI
# - E2E
# to run tests from different categories as separate jobs in parallel
#test:
# categories:
# - A # A category common for all jobs
# - [UI] # 1st job
# - [DAL, BL] # 2nd job
# scripts to run before tests
before_test:
- echo script1
- ps: Write-Host "script1"
# scripts to run after tests
after_test:
# to run your custom scripts instead of automatic tests
test_script:
- echo "Running all the test suites"
- cd julius && npm test && cd ..
- cd fujian && py.test && cd ..
# - cd lychee && py.test && cd ..
- cd mercurial-hug && py.test && cd ..
# to disable automatic tests
#test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
# # pushing a single file
# - path: test.txt
# # pushing a single file with environment variable in path and "Deployment name" specified
# - path: MyProject\bin\$(configuration)
# name: myapp
# pushing entire folder as a zip archive
- path: dummy
# # pushing all *.nupkg files in build directory recursively
# - path: '**\*.nupkg'
#---------------------------------#
# deployment configuration #
#---------------------------------#
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
# provider names are case-sensitive!
deploy:
# Deploy to GitHub Releases
- provider: GitHub
artifact: dummy.zip # upload all NuGet packages to release assets
draft: true
force_update: true
prerelease: false
auth_token:
secure: Ile301NnDvTpQ6i1B3Kdgh1hLc9QuiABjJTXPERabJgEnNyBc8ogqUZVYEpdOtio
on:
branch: main # release from master branch only
appveyor_repo_tag: false # deploy on tag push only
# scripts to run before deployment
before_deploy:
# - python package_ncoda_macOS.py
# - cp -r dist/nCoda.app nCoda.app/Contents/Resources/app/nCoda.app copy backend into frontend
# scripts to run after deployment
after_deploy:
# to run your custom scripts instead of provider deployments
deploy_script:
# to disable deployment
#deploy: off
#---------------------------------#
# global handlers #
#---------------------------------#
# on successful build
on_success:
# on build failure
on_failure:
# after build failure or success
on_finish: