forked from ponylang/ponyc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
87 lines (75 loc) · 2.32 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
version: "{build}"
image: Visual Studio 2015
branches:
only:
- master
- release
environment:
matrix:
- llvm: 3.9.1
- llvm: 3.8.1
- llvm: 3.7.1
configuration:
- release
- debug
clone_depth: 100
clone_folder: C:\projects\ponyc
install:
- ps: |
$package_commit = git rev-parse --short --verify "HEAD^{commit}"
$package_version = (Get-Content "VERSION")
$package_iteration = "$package_iteration${env:appveyor_build_number}.$package_commit"
Update-AppveyorBuild -Version "ponyc-${env:appveyor_repo_branch}-$package_version-$package_iteration"
- cd C:\projects\ponyc
- python -x waf configure
- python -x waf build --config %configuration% --llvm %llvm%
- ps: |
$ponydir = "${env:appveyor_build_version}-win64"
cd C:\projects\ponyc
md "$ponydir"
md "${ponydir}\ponyc"
md "${ponydir}\ponyc\bin"
$builddir = "C:\projects\ponyc\build\${env:configuration}-llvm-${env:llvm}"
Write-Output "Build dir is ${builddir}"
copy $builddir\ponyc.* "${ponydir}\ponyc\bin"
copy $builddir\ponyrt.* "${ponydir}\ponyc\bin"
copy $builddir\*.lib "${ponydir}\ponyc\bin"
copy -recurse packages "${ponydir}\packages"
7z a -tzip "C:\projects\ponyc\${ponydir}.zip" "${ponydir}"
artifacts:
- path: 'ponyc-*.zip'
deploy:
# On branches `master` and `release`, deploy (and publish) artifacts
# to the ponyc-win projects on Bintray.
- provider: BinTray
username: pony-buildbot-2
api_key:
secure: 4KgdDQLp2kX816XH27d5xdJBPlKGhYXN6ttdHTSt5qe1MVIF+/VResUstg0zuJ6m
subject: pony-language
repo: ponyc-win
package: ponyc-master
version: $(appveyor_build_version)
on:
branch: master
llvm: 3.9.1
configuration: release
publish: true
- provider: BinTray
username: pony-buildbot-2
api_key:
secure: 4KgdDQLp2kX816XH27d5xdJBPlKGhYXN6ttdHTSt5qe1MVIF+/VResUstg0zuJ6m
subject: pony-language
repo: ponyc-win
package: ponyc-release
version: $(appveyor_build_version)
on:
branch: release
llvm: 3.9.1
configuration: release
publish: true
build:
none
test_script:
- ps: |
cd C:\projects\ponyc
python -x waf test --config $env:configuration --llvm $env:llvm