-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
81 lines (70 loc) · 2.53 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
version: 1.0.{build}
image: Visual Studio 2015
environment:
matrix:
- llvm: 3.8.0
- llvm: 3.7.1
configuration:
- Debug
- Release
clone_depth: 100
clone_folder: C:\projects\ponyc
install:
- ps: |
cd C:\
$premakeInstalled = Test-Path C:\premake5.exe
$llvmInstalled = Test-Path C:\LLVM
if(-Not $premakeInstalled)
{
wget https://github.com/premake/premake-core/releases/download/v5.0.0-alpha9/premake-5.0.0-alpha9-windows.zip -OutFile C:\premake5.zip
7z x C:\premake5.zip
del C:\premake5.zip
}
if(-Not $llvmInstalled)
{
wget "https://github.com/dipinhora/ponyc-llvm/releases/download/LLVM-Release-VS2015/LLVM-${env:llvm}-Release-VS2015.7z" -OutFile C:\LLVM.7z
7z x C:\LLVM.7z
del C:\LLVM.7z
}
$env:path += ";C:\LLVM-${env:llvm}\bin"
- ps: |
cd C:\
$libsInstalled = Test-Path C:\ponyc-windows-libs
if(-Not $libsInstalled)
{
md C:\ponyc-windows-libs
cd C:\ponyc-windows-libs
md lib
svn co svn://vcs.exim.org/pcre2/code/tags/pcre2-10.21 pcre2
md pcre2.build
cd pcre2.build
cmake ..\pcre2 -G "Visual Studio 14 2015 Win64"
msbuild PCRE2.sln /t:pcre2-8 /p:Configuration=Release
copy Release\pcre2-8.lib ..\lib
cd ..
wget http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.1.4-windows.zip -OutFile libressl-2.1.4-windows.zip
unzip -o libressl-2.1.4-windows.zip
copy libressl-2.1.4-windows\x64\libssl-32.* lib
copy libressl-2.1.4-windows\x64\libcrypto-32.* lib
}
$env:LIB = "C:\ponyc-windows-libs\lib;" + $env:LIB
$env:path += ";C:\ponyc-windows-libs\lib"
cache:
- 'C:\LLVM-%llvm%\ -> .appveyor.yml'
- C:\premake5.exe -> .appveyor.yml
- C:\ponyc-windows-libs\ -> .appveyor.yml
before_build:
- rmdir /s /q C:\projects\ponyc
- git clone -q --depth=1 --branch=master https://github.com/ponylang/ponyc.git C:\projects\ponyc
- ps: cd C:\projects\ponyc
- C:\premake5.exe --with-tests --to=work/vs2015 vs2015
build:
project: work\vs2015\ponyc.sln
verbosity: minimal
test_script:
- C:\projects\ponyc\build\%CONFIGURATION%\testc.exe
- C:\projects\ponyc\build\%CONFIGURATION%\testrt.exe
- CALL "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\vcvars64.bat"
- C:\projects\ponyc\build\%CONFIGURATION%\ponyc.exe -V 3 -o C:\projects\ponyc\ -d -s packages/stdlib
- stdlib.exe
- del stdlib.exe