forked from increpare/bfxr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
48 lines (39 loc) · 1.5 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
version: 1.0.{build}
skip_tags: true
branches:
only:
- master
image: Visual Studio 2017
install:
- cd %APPVEYOR_BUILD_FOLDER%
- cmd: '%APPVEYOR_BUILD_FOLDER%\tool.py gitfix %APPVEYOR_BUILD_FOLDER%'
- git submodule update --init --recursive
build_script:
- cmd: '%APPVEYOR_BUILD_FOLDER%\tool.py download https://www.libsdl.org/release/SDL2-devel-2.0.9-VC.zip %APPVEYOR_BUILD_FOLDER%\sdl2.zip'
- cmd: '%APPVEYOR_BUILD_FOLDER%\tool.py unzip %APPVEYOR_BUILD_FOLDER%\sdl2.zip %APPVEYOR_BUILD_FOLDER%\sdl2'
- cmd: 'mkdir %APPVEYOR_BUILD_FOLDER%\build'
- cmd: 'mkdir %APPVEYOR_BUILD_FOLDER%\deploy'
- cmd: 'cd %APPVEYOR_BUILD_FOLDER%\build && cmake -D CMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deploy/ -D SDL2_HINT_ROOT=%APPVEYOR_BUILD_FOLDER%\sdl2\SDL2-2.0.9\ ..'
- cmd: 'cmake --build %APPVEYOR_BUILD_FOLDER%\build --config Release --target package'
on_failure:
- cmd: 'type "C:\\projects\\bfxr\\build\\_CPack_Packages\\win32\\WIX\\wix.log"'
platform:
- x86
after_build:
- cmd: '7z a %APPVEYOR_BUILD_FOLDER%\deploy\artifact.zip %APPVEYOR_BUILD_FOLDER%\deploy\*'
artifacts:
- path: deploy\artifact.zip
deploy:
- provider: BinTray
username: madeso
api_key:
# api key from https://bintray.com/profile/edit
# encrypted in https://ci.appveyor.com/tools/encrypt
secure: 4+yuIks0NBwT5o8cMeC0uc2qRFlG8y3rhyRtalbby0wwlCTBlquzVQqQSVdm2a1J
subject: madeso
repo: bfxr-generic
package: bfxr-master
version: master
publish: true
override: true
explode: true