forked from teambit/bit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
169 lines (151 loc) · 10.3 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
version: 1.0.{build}
image: Visual Studio 2017
skip_branch_with_pr: true
configuration:
- Unit
- e2e.1
- e2e.2
- e2e.3
branches:
except:
- performance-tests
for:
-
matrix:
only:
- configuration: Unit
test_script:
- ps: "npm run test:appveyor"
-
matrix:
only:
- configuration: e2e.1
test_script:
- ps: "npm run e2e-test:appveyor1"
-
matrix:
only:
- configuration: e2e.2
test_script:
- ps: "npm run e2e-test:appveyor2"
-
matrix:
only:
- configuration: e2e.3
test_script:
- ps: "npm run e2e-test:appveyor3"
# build cache to preserve files/folders between builds
cache:
- node_modules -> package.json, package-lock.json, appveyor.yml # local npm modules
- '%APPDATA%\npm-cache -> package.json, package-lock.json, appveyor.yml' # npm cache
- C:\pkg-cache -> package.json, package-lock.json, appveyor.yml
environment:
nodejs_version: "10.15.3"
# skipping fethcing the pre-built binary from remote to make sure we pack it locally
# as opposed to circle configuration, here we will use the install script to build it locally instead of dedicated pack step
# it's done this way to save time in configuring appveyor different workflows
SKIP_FETCH_BINARY: true
priv_key:
secure: jkIxdF4vSooJ3M+FUu5yh2peUbAt3fFvUkj4SJUMxiyTBLkmWBVl5QSL3wIjF3Smr1UbO9SulwYQ/pli183peNNvFKKUbjq98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TUyQQSLiPN8zHXI4AV9aOSBZK5oTaT04LpniO8BEzIsyt5EOEdj9g3eTxjhkf7o7VxgIvtcM/0RtowwsIz6GJaL4vwxfeHatACSfD8zymsuuf9QMd81KmW5VXfivSKlWb+3fZC3GWuONSpNukVDGFPGyvO99GEHBscN/OXLQEzIaUyBY9d6IG9/Spwleeywfc0zYXSKrCT2iymeiv9irneLx/U1Cf8PzPjWM6S5GFEPidmMMPc/ZnYwqMMWnw/EIsGsF0c4h5mNvHe58TZP5YD0vBLoYG0B++45NWzdr3Nszju/MwvheoEpwtDPjEV+AXjy+W5S9louzxNMGI/E9ymQsTyBCNaiwfLUZKP+9S7a0qE3rGWSbpnPsXfwphdvG2BEfNH/hEKKTj8FiQ9NLfg18E06l+hnhob3r5OZibZrj399MRglELmLh9XCwL7khlET42CosFhU65TVXsXqlfgyVpHsPEBIjn5dtRT7WbQ==
token:
secure: 0a4USjGKxWeE8xz4tO5MnQ==
releaseUser:
secure: 0a4USjGKxWeE8xz4tO5MnQ==
releasePassword:
secure: tR01IIjMw35fBOFhTQd9jw==
repoUser:
secure: B5rIxIs4O8RRe0ml9e87+A==
repoPassword:
secure: tR01IIjMw35fBOFhTQd9jw==
ruby_version:
secure: k41GeNhYWLfPG/Fir8TGhA==
ENVIRONMENT:
secure: 0MX/69qK7Z1yjELPC8wOCw==
ReleaseServerDevelopment:
secure: UHrmNjH6IaU79OhRU9ina1f5jPX1EXBlsm9w+QfqWA/jNLPx4t+XMottVjJHZVtr
ReleaseServerStable:
secure: y7mz8E9mkcwCaCVvFs9WX+5k8jg+t8HwFpZhMYlYEfZhdnFH1U7gWCJTi+zVLiT9
registryProdToken:
secure: PRt6cU+74aoYU+qZrdbRnQn62vTYP786tovlgwUkoA6mMQCypTcXxBubEFiZqFRE
registryStgToken:
secure: v5l1kiPQwyt21xAht4eEL97w2g4XQbMMmBk7Iu8YQ2OIHzs2SmYC4fKZ7oZvKohH
testerBitsrcPassword:
secure: tR01IIjMw35fBOFhTQd9jw==
BITSRC_ENV: stg
matrix:
- ruby_version: Ruby23-x64
install:
- ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
- ps: $fileContent += $env:testerBitsrcSSHPrivateKey.Replace(' ', "`n")
- ps: $fileContent += "`n-----END RSA PRIVATE KEY-----`n"
- ps: Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
- ps: $pubSshContent = $env:testerBitsrcSSHPublicKey.Replace(' ', "`n")
- ps: Set-Content c:\users\appveyor\.ssh\id_rsa.pub $pubSshContent
# prod registry
# - ps: $npmrcContent = "@bit:registry=https://node.bit.dev/`n"
# - ps: $npmrcContent += "//node.bit.dev/:_authToken=$env:registryProdToken`n"
# stg registry
- ps: $npmrcContent = "@bit:registry=https://node-stg.bit.dev/`n"
- ps: $npmrcContent += "//node-stg.bit.dev/:_authToken=$env:registryStgToken`n"
- ps: Set-Content $env:userprofile\.npmrc $npmrcContent
- npm config ls
# - ps: Update-NodeJsInstallation 10.16.0
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- ps: Install-Product node 10.16.0 x64 # since upgrading to babel 7, AppVeyor fails when node is 6
- ps: npm i -g npm@6.9.0
- "set PKG_CACHE_PATH=C:\\pkg-cache"
- "npm install -g pkg"
build_script:
- "npm ci"
- "npm run build"
after_build:
# installing v0.18.5 since newer versions (up to 0.20.1) currently not working on windows
# see more here https://github.com/zeit/ncc/issues/439
# - "npm install -g @zeit/ncc@0.18.5"
# - "npm run pkg"
# - "npm run bundle:test-worker:debug"
# - "dir C:\\pkg-cache"
# - "dir C:\\projects\\bit-wikt3\\releases"
# - ps: rename-item -path "./releases/bit-bin.exe" -newname "bit.exe"
# - ps: $ENV:PATH="C:\projects\bit-wikt3\releases;C:\Ruby200-x64\bin;C:\Python27-x64;$ENV:PATH"
- "npm link"
- "bit --version"
# stg hub
- "bit config set hub_domain hub-stg.bit.dev"
- "bit config set set user.name tester"
- "bit config set user.email ci@bit.dev"
- "bit config set ssh_key_file c:\\users\\appveyor\\.ssh\\id_rsa"
- "bit config set analytics_reporting false"
- "bit config set error_reporting false"
test_script:
- npm run test:appveyor
- npm run e2e-test:appveyor
#after_test:
#- ps: >-
# .\scripts\node-installer.ps1
# .\scripts\build-dist.ps1
# .\scripts\build-windows-installer.bat
# .\scripts\copyArtifacts.ps1
artifacts:
# artifacts below are not working! they only support artifacts relative to the current directory (C:\projects\bit-wikt3)
# - path: "../../Users/appveyor/AppData/Roaming/npm-cache/_logs"
# - path: "%LOCALAPPDATA%\\Roaming\\npm-cache\\_logs"
# - path: "%LOCALAPPDATA%\\Bit\\Logs\\debug.log"
# - path: "../../Users/appveyor/AppData/Local/Bit/Logs/debug.log"
# name: bit-logs
# - path: "output.err"
# name: mocha-output
#- path: artifacts\*.msi
# name: Installer
#- path: artifacts\bit.${VERSION}.nupkg
# name: nupkg
#deploy_script:
#- ps: >-
# $VERSION= $(node -p -e "require('./package.json').version")
# .\scripts\deploy-windows.ps1 -Repo bit-msi -File bit-${VERSION}-unsigned.msi -Source artifacts\bit-${VERSION}-unsigned.msi -ENVIRONMENT development -ReleaseServer $env:ReleaseServerDevelopment -Method msi
# .\scripts\build-chocolatey.ps1
# .\scripts\deploy-windows.ps1 -Repo bit-nuget -File bit.${VERSION}.nupkg -Source artifacts\bit.${VERSION}.nupkg -ENVIRONMENT development -ReleaseServer $env:ReleaseServerDevelopment -Method nupkg