forked from Attnam/ivan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
96 lines (77 loc) · 2.32 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# If you want to set up another Travis CI service for your fork (not branch),
# you can alter it to disable tests and notification for the official repo.
if: repo = Attnam/ivan
sudo: required
dist: trusty
language: cpp
matrix:
include:
- env: CXXFLAGS= IVAN_PLATFORM=
os: linux
compiler: clang
- env: CXXFLAGS=-DWIZARD IVAN_PLATFORM=
os: linux
compiler: clang
- env: CXXFLAGS= IVAN_PLATFORM=
os: osx
compiler: clang
- env: CXXFLAGS=-DWIZARD IVAN_PLATFORM=
os: osx
compiler: clang
- env: CXXFLAGS= IVAN_PLATFORM=
os: linux
compiler: gcc
- env: CXXFLAGS=-DWIZARD IVAN_PLATFORM=
os: linux
compiler: gcc
- env: CXXFLAGS= IVAN_PLATFORM=
os: osx
compiler: gcc
- env: CXXFLAGS=-DWIZARD IVAN_PLATFORM=
os: osx
compiler: gcc
- env: CXXFLAGS=-DWIZARD IVAN_PLATFORM=win
os: linux
compiler: gcc
- env: CXXFLAGS=-DWIZARD IVAN_PLATFORM=osx SDL2DIR=$HOME/Thirdparty/Frameworks
os: osx
compiler: clang
cache:
directories:
- $HOME/Thirdparty/Frameworks
addons:
apt:
packages:
- libsdl2-dev
- libsdl2-mixer-dev
before_install:
- export HOMEBREW_NO_AUTO_UPDATE=1
- export IVAN_BUILD_DIR=${TRAVIS_BUILD_DIR}/build
- export IVAN_FILE_VERSION=${TRAVIS_TAG#v}
- if [[ "$TRAVIS_OS_NAME" = osx ]]; then ./ci/osx/requirements.sh; fi
- if [[ "$IVAN_PLATFORM" = win ]]; then ./ci/win/requirements.sh; fi
script:
- mkdir build
- cd build
- if [[ -z "$IVAN_PLATFORM" ]]; then cmake .. -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-Werror -Wno-format-security -Wno-undefined-var-template -Wno-unknown-warning-option ${CXXFLAGS}"; fi
- if [[ -n "$IVAN_PLATFORM" ]]; then "../ci/$IVAN_PLATFORM/build.sh"; fi
- make
- make igor
- make mihail
- if [[ -z "$IVAN_PLATFORM" ]]; then sudo make install; fi
- if [[ -n "$IVAN_PLATFORM" ]]; then make install; fi
- if [[ -n "$IVAN_PLATFORM" ]]; then "../ci/$IVAN_PLATFORM/package.sh"; fi
# https://docs.travis-ci.com/user/deployment/releases
deploy:
provider: releases
api_key: $GH_API_KEY
skip_cleanup: true
file_glob: true
file:
- $IVAN_BUILD_DIR/$IVAN_PLATFORM/*.zip
- $IVAN_BUILD_DIR/$IVAN_PLATFORM/*.dmg
on:
condition: '"$IVAN_PLATFORM" =~ ^(win|osx)$'
repo: Attnam/ivan
tags: true
branch: master