forked from openframeworks/openFrameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
100 lines (81 loc) · 3.09 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
version: 1.0.{build}
platform:
- x86
- x64
environment:
global:
APPVEYOR_OS_NAME: windows
CHERE_INVOKING: 1
MSYS2_PATH: c:\msys64
#CCACHE settings : Appveyor cache is limited to 1G so we limit CCACHE to 2G and expect 50% compression...
CCACHE_DIR: "%APPVEYOR_BUILD_FOLDER%\\.ccache"
CCACHE_MAXSIZE: 2G
matrix:
#MSYS2 Building
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BUILDER: MSYS2
#VisualStudio Building
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BUILDER : VS
configuration: Debug
shallow_clone: true
clone_depth: 10
init:
# fix for https://github.com/appveyor/ci/issues/2571
- del C:\Windows\System32\libssl-*.dll C:\Windows\system32\libcrypto-*.dll
- del C:\Windows\SysWOW64\libssl-*.dll C:\Windows\SysWOW64\libcrypto-*.dll
for:
-
matrix:
only:
- BUILDER: MSYS2
cache:
- .ccache
install:
- |-
set MSYSTEM=%platform:86=32%
set MSYSTEM=%MSYSTEM:x=MINGW%
cd C:\
ren msys64 msys64_old
C:\msys64_old\usr\bin\bash -lc "curl -L http://repo.msys2.org/distrib/msys2-x86_64-latest.tar.xz | xz -d | tar -xf -"
%MSYS2_PATH%\usr\bin\bash -lc "pacman --noconfirm -Syu"
%MSYS2_PATH%\usr\bin\pacman --noconfirm -S --needed unzip rsync wget libopenssl
cd "%APPVEYOR_BUILD_FOLDER%"
%MSYS2_PATH%\usr\bin\bash -lc "scripts/ci/msys2/install.sh"
%MSYS2_PATH%\usr\bin\bash -lc "echo $PATH"
before_build:
- |-
%MSYS2_PATH%\usr\bin\bash -lc "ccache -z"
%MSYS2_PATH%\usr\bin\bash -lc "ccache -s"
build_script:
- '%MSYS2_PATH%\usr\bin\bash -lc "scripts/ci/msys2/build.sh"'
test_script:
- '%MSYS2_PATH%\usr\bin\bash -lc "scripts/ci/msys2/run_tests.sh"'
after_test:
- '%MSYS2_PATH%\usr\bin\bash -lc "ccache -s"'
-
matrix:
only:
- BUILDER: VS
install:
- |-
set BITS=%platform:86=32%
set BITS=%BITS:x=%
cd C:\
ren msys64 msys64_old
C:\msys64_old\usr\bin\bash -lc "curl -L http://repo.msys2.org/distrib/msys2-x86_64-latest.tar.xz | xz -d | tar -xf -"
%MSYS2_PATH%\usr\bin\bash -lc "pacman --noconfirm -Syu"
%MSYS2_PATH%\usr\bin\pacman --noconfirm -S --needed unzip rsync wget libopenssl
cd "%APPVEYOR_BUILD_FOLDER%"
set PATH=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;%PATH%
%MSYS2_PATH%\usr\bin\bash -lc "scripts/ci/vs/install.sh"
build_script:
- |-
echo BITS=%BITS%
msbuild libs/openFrameworksCompiled/project/vs/openframeworksLib.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
msbuild examples/templates/emptyExample/emptyExample.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
test_script:
- |-
cd scripts/ci/vs
.\run_tests.bat