forked from teambit/bit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
54 lines (45 loc) · 1.67 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
version: 1.0.{build}
image: Visual Studio 2015
environment:
token:
secure: 0a4USjGKxWeE8xz4tO5MnQ==
releaseUser:
secure: 0a4USjGKxWeE8xz4tO5MnQ==
releasePassword:
secure: tR01IIjMw35fBOFhTQd9jw==
repoUser:
secure: B5rIxIs4O8RRe0ml9e87+A==
repoPassword:
secure: ajxoh+tY0Qm/CVa6u66nmw==
ruby_version:
secure: k41GeNhYWLfPG/Fir8TGhA==
ENVIRONMENT:
secure: 0MX/69qK7Z1yjELPC8wOCw==
ReleaseServerDevelopment:
secure: UHrmNjH6IaU79OhRU9ina1f5jPX1EXBlsm9w+QfqWA/jNLPx4t+XMottVjJHZVtr
ReleaseServerStable:
secure: y7mz8E9mkcwCaCVvFs9WX+5k8jg+t8HwFpZhMYlYEfZhdnFH1U7gWCJTi+zVLiT9
matrix:
- ruby_version: Ruby23-x64
install:
- ps: >-
Install-Product node $env:6
$ENV:PATH="C:\Ruby200-x64\bin;C:\Python27-x64;$ENV:PATH"
npm install -g bit-cli
build_script:
- ps: >-
mv .\package.json .\package.json.bak
Get-Content .\package.json.bak | Where-Object {$_ -notmatch 'posix'} | Set-Content package.json
.\scripts\build-dist.ps1
.\scripts\build-windows-installer.bat
artifacts:
- path: distribution/windows/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