-
Notifications
You must be signed in to change notification settings - Fork 3
/
.appveyor.yml
77 lines (68 loc) · 2.56 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
matrix:
#MSYS2 Building
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x86
BUILDER: MSYS2
#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
clone_depth: 100
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
- set MSYS2_PATH=c:\msys64
- set CHERE_INVOKING=1
- if "%BUILDER%_%PLATFORM%"=="MSYS2_x86" set MSYSTEM=MINGW32
- if "%BUILDER%_%PLATFORM%"=="MSYS2_x64" set MSYSTEM=MINGW64
- '%MSYS2_PATH%\usr\bin\bash -lc "pacman --noconfirm --needed -Sy bash pacman pacman-mirrors msys2-runtime msys2-runtime-devel"'
- '%MSYS2_PATH%\usr\bin\bash -lc "pacman --noconfirm -S --needed unzip rsync mingw-w64-i686-ntldd-git"'
# fix missing ssl
- '%MSYS2_PATH%\usr\bin\bash -lc "pacman --noconfirm -S --needed libopenssl mingw-w64-i686-openssl"'
- if "%BUILDER%"=="VS" set PATH=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;%PATH%
install:
- cd ..
- git clone --depth=1 --branch=master https://github.com/openframeworks/openFrameworks
- mkdir openFrameworks\apps\myapps
- move %APPVEYOR_PROJECT_SLUG% openFrameworks\apps\myapps\%APPVEYOR_PROJECT_NAME%
- cd openFrameworks
- if "%BUILDER%"=="MSYS2" %MSYS2_PATH%\usr\bin\bash -lc "scripts/msys2/install_dependencies.sh --noconfirm"
- if "%BUILDER%"=="MSYS2" %MSYS2_PATH%\usr\bin\bash -lc "scripts/msys2/download_libs.sh --silent"
- cd addons
- git clone --depth=1 https://github.com/jvcleave/ofxImGui.git
- cd ..\apps\myapps\%APPVEYOR_PROJECT_NAME%
build_script:
- if "%BUILDER%"=="MSYS2" %MSYS2_PATH%\usr\bin\bash -lc "make Debug && make copy_dlls"
- if "%BUILDER%"=="VS" echo "BOE"
after_build:
# windows batch sucks :S this gets git describe info into a var
- git fetch --all --tags
- git describe --tag --always --dirty --abbrev=4 > gitversion.txt
- set /p GITVERSION=<gitversion.txt
- del gitversion.txt
- cd bin
- 7z a -r %APPVEYOR_BUILD_FOLDER%\%APPVEYOR_PROJECT_NAME%_win_%APPVEYOR_REPO_BRANCH%_%GITVERSION%.zip *.*
- dir
deploy:
provider: FTP
protocol: sftp
host: pong.hku.nl
username: buildbot
password:
secure: sX82pi7zNN1f0L6eYSqOQA==
folder: public_html/nightly/
artifact: buildzip
artifacts:
- path: '*.zip'
name: buildzip