forked from openframeworks/openFrameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
77 lines (65 loc) · 2.7 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
version: 1.0.{build}
environment:
global:
APPVEYOR_OS_NAME: windows
CHERE_INVOKING: 1
MSYS2_PATH: c:\msys64
matrix:
#MSYS2 Building
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x86
BUILDER: MSYS2
MSYSTEM: MINGW32
CCACHE_DIR: "%APPVEYOR_BUILD_FOLDER%\\.ccache"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x64
BUILDER: MSYS2
MSYSTEM: MINGW64
CCACHE_DIR: "%APPVEYOR_BUILD_FOLDER%\\.ccache"
#VisualStudio Building
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x86
BUILDER : VS
BITS: 32
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x64
BUILDER : VS
BITS: 64
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
# Upgrade the MSYS2 system and all install packages
- '%MSYS2_PATH%\usr\bin\pacman --noconfirm -Syu'
# Install packages need by download_libs.sh scripts (VS and MSYS2)
- '%MSYS2_PATH%\usr\bin\pacman --noconfirm -S --needed unzip rsync wget libopenssl mingw-w64-i686-openssl'
- if "%BUILDER%"=="VS" set PATH=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;%PATH%
# - IF "%BUILDER%"=="VS" set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
cache:
- .ccache
install:
- if "%BUILDER%"=="VS" (%MSYS2_PATH%\usr\bin\bash -lc "scripts/ci/vs/install.sh")
- if "%BUILDER%"=="MSYS2" (%MSYS2_PATH%\usr\bin\bash -lc "scripts/ci/msys2/install.sh")
before_build:
- if "%BUILDER%"=="MSYS2" (%MSYS2_PATH%\usr\bin\bash -lc "ccache -z")
- if "%BUILDER%"=="MSYS2" (%MSYS2_PATH%\usr\bin\bash -lc "ccache -s")
build_script:
- if "%BUILDER%"=="MSYS2" (%MSYS2_PATH%\usr\bin\bash -lc "scripts/ci/msys2/build.sh")
- ps: |
if ($env:BUILDER -eq "VS") {
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:
- if "%BUILDER%"=="MSYS2" (%MSYS2_PATH%\usr\bin\bash -lc "scripts/ci/msys2/run_tests.sh")
- ps: |
if ($env:BUILDER -eq "VS") {
cd scripts/ci/vs
.\run_tests.bat
}
after_test:
- if "%BUILDER%"=="MSYS2" (%MSYS2_PATH%\usr\bin\bash -lc "ccache -s")