-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 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
git:
submodules: false
# Enable C++ support
language: cpp
# Compiler selection
dist: bionic
matrix:
include:
- env:
- TARGET=SDL2
- TYPE=Release
- CXX=g++-8
os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-8']
packages: ['gcc-8', 'g++-8', 'ninja-build', 'libsdl2-dev', 'libsdl2-mixer-dev', 'libgles2-mesa-dev']
# - env:
# - TARGET=SDL2
# - TYPE=Release
# - CXX=clang++
# os: osx
# osx_image: xcode12.2
# addons:
# homebrew:
# packages: ['sdl2', 'sdl2_mixer']
- env:
- TARGET=IOS
os: osx
osx_image: xcode12.2
script:
- $CXX --version
- if [ "$TARGET" == "IOS" ]; then xcodebuild build -project platforms/ios/zeptobird.xcodeproj -target zeptobird -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO ; fi
- if [ "$TARGET" != "IOS" ]; then mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=${TYPE} .. && cmake --build . && ctest -R ; fi