forked from ponylang/ponyc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
87 lines (77 loc) · 2.16 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 2017
branches:
only:
- master
- release
environment:
matrix:
- llvm: 3.9.1
- llvm: 5.0.1
- llvm: 6.0.0
configuration:
- release
- debug
clone_depth: 100
skip_tags: true
skip_commits:
files:
- .bintray.sh
- .circleci/config.yml
- .gitattributes
- .gitignore
- .gitmodules
- .travis.yml
- .travis_commands.bash
- .travis_install.bash
- .travis_script.bash
- '**/Dockerfile'
- LICENSE
- Makefile
- release.bash
- '**/*.md'
- '**/*.txt'
clone_folder: C:\projects\ponyc
build_script:
- 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-$package_version-$package_iteration"
- cd C:\projects\ponyc
- python -x waf configure
- python -x waf clean --config %configuration% --llvm %llvm%
- python -x waf build --config %configuration% --llvm %llvm%
- ps: |
$ponydir = "ponyc-${package_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 branche `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
on:
branch: release
llvm: 3.9.1
configuration: release
publish: true
test_script:
- cd C:\projects\ponyc
- python -x waf test --config %configuration% --llvm %llvm%