forked from Cxbx-Reloaded/Cxbx-Reloaded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (36 loc) · 1.07 KB
/
.travis.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
language: cpp
matrix:
include:
- os: windows
env: configuration=Debug
- os: windows
env: configuration=Release
before_script:
- if [ $TRAVIS_OS_NAME == 'windows' ]; then
mkdir build;
cd build;
cmake .. -G "Visual Studio 15 2017" -A Win32;
fi
script:
- if [ $TRAVIS_OS_NAME == 'windows' ]; then
cmake --build . --config $configuration;
fi
# Bug with the Windows builder requires us to not filter secrets
#filter_secrets: false
#before_deploy:
# - mkdir export
# - 7z u export/${configuration} COPYING README.md
# - cd build/win32/${configuration}
# - 7z u ../../../export/${configuration} cxbx.exe cxbxr-ldr.exe cxbxr-emu.dll glew32.dll subhook.dll SDL2.dll
# - 7z u ../../../export/${configuration} CxbxDebugger.exe capstone.dll cs_x86.dll
# - cd ../../../
#deploy:
# provider: releases
# api_key: $GH_TOKEN
# file: "export/${configuration}.7z"
# skip_cleanup: true
# on:
# # Can disable this to deploy all builds appears as "untagged-buildhash" on GH
# tags: true
# branch: develop
# condition: $configuration = Release