forked from increpare/bfxr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
41 lines (34 loc) · 1.12 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
language: cpp
# Handle git submodules yourself
git:
submodules: false
# Use sed to replace the SSH URL with the public URL, then initialize submodules
before_install:
# osx expects -i to have a empty argument...
- case $TRAVIS_OS_NAME in osx) sed -i '' 's/git@github.com:/https:\/\/github.com\//' .gitmodules;; linux) sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules;; esac
- git submodule update --init --recursive
addons:
homebrew:
packages:
- sdl2
apt:
packages:
# opengl
- libgl1-mesa-dev
# sdl library
- libsdl2-dev
# native file dialog
- libgtk-3-dev
os:
- linux
- osx
dist: xenial
script: mkdir build && cd build && cmake -D CMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/deploy/ .. && make && make package
before_deploy: ls ${TRAVIS_BUILD_DIR}/install && echo "" && ls ${TRAVIS_BUILD_DIR}/deploy && echo ${TRAVIS_BUILD_DIR}/install/bintray-${TRAVIS_OS_NAME}.json
deploy:
provider: bintray
file: ${TRAVIS_BUILD_DIR}/install/bintray-${TRAVIS_OS_NAME}.json
user: "madeso"
key: ${TRAVIS_BINTRAY_SECRET}
dry-run: false
skip_cleanup: true