-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
185 lines (161 loc) · 4.33 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# default in trusty is GCC 4.8, Clang 3.5, cmake 3.2
# default in xenial is GCC 5.4, Clang 7.0, cmake 3.12
# https://github.com/travis-ci/apt-source-whitelist
language: cpp
dist: xenial
os: linux
env:
global:
- CROSS_COMPILE32=0
- BUNDLED_LIBS=1
- BUNDLED_SDL=1
- BUNDLED_ZLIB=1
- BUNDLED_MINIZIP=1
- BUNDLED_JPEG=1
- BUNDLED_PNG=1
- BUNDLED_LUA=1
- BUNDLED_OGG=1
- INSTALL_EXTRA=0
jobs:
include:
# 32 bit
# FIXME: enable this when ubuntu/dist is able to install fglrx
# - os: linux
# compiler: gcc
# env:
# - RELEASE_TYPE=release
# - CROSS_COMPILE32=1
# addons:
# sources:
# - ubuntu-toolchain-r-test
# apt:
# packages:
# - g++-4.8-multilib
# - gcc-multilib
# - gcc-4.9-base:i386
# - nasm:i386
# - libx11-6:i386
# - libx11-dev:i386
# - libgcc1:i386
# - libglib2.0-dev:i386
# - fglrx:i386
# - fglrx-dev:i386
# - libasound2-dev:i386
# - pulseaudio:i386
# - libpulse-dev:i386
# 64 bit
- os: linux
env: RELEASE_TYPE=release
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- nasm
- libwayland-dev
- wayland-protocols
- libgl1-mesa-dev
- libglu1-mesa-dev
- libasound2-dev
- pulseaudio
- libpulse-dev
- os: linux
compiler: gcc
env: RELEASE_TYPE=debug
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- nasm
- libwayland-dev
- wayland-protocols
- libgl1-mesa-dev
- libglu1-mesa-dev
- libasound2-dev
- pulseaudio
- libpulse-dev
- os: linux
env: RELEASE_TYPE=release
compiler: clang
addons:
apt:
sources:
- llvm-toolchain-trusty
packages:
- nasm
- libwayland-dev
- wayland-protocols
- libgl1-mesa-dev
- libglu1-mesa-dev
- libasound2-dev
- pulseaudio
- libpulse-dev
- os: linux
env: RELEASE_TYPE=debug
compiler: clang
addons:
apt:
sources:
- llvm-toolchain-trusty
packages:
- nasm
- libwayland-dev
- wayland-protocols
- libgl1-mesa-dev
- libglu1-mesa-dev
- libasound2-dev
- pulseaudio
- libpulse-dev
#- os: osx
# osx_image: xcode8.3
# before_install:
# - brew update
# - brew install gnu-sed nasm
# - brew outdated automake || brew upgrade automake
# - brew outdated autoconf || brew upgrade autoconf
# env:
# - CXX=clang++ CC=clang
# - CXXFLAGS="-g -lstdc++"
install:
############################################################################
# All the dependencies are installed in ${TRAVIS_BUILD_DIR}/deps/
############################################################################
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="https://cmake.org/files/v3.15/cmake-3.15.4-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
fi
- cmake --version
- cd ${TRAVIS_BUILD_DIR}
script:
- ./easybuild.sh
notifications:
irc:
template:
- "%{repository}#%{build_number} %{commit} %{author}: %{message} %{build_url}"
channels:
- "irc.freenode.org#etlegacy"
on_success: change
on_failure: always
skip_join: true
use_notice: true
webhooks:
urls:
- https://xzy.com/api/webhooks/12345
on_success: change
on_failure: always
on_start: never
# Discord notification
#after_success:
# - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
# - chmod +x send.sh
# - ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL