.travis.yml 27.1 KB
Newer Older
1 2 3 4 5
# Travis-CI Config
#
# You may use the Deployer to upload packages and builds to external servers.
# See deployer/travis/deployer_defaults.sh for environment variables to configure.

Alam Ed Arias committed
6
language: c
7
sudo: required
8
dist: trusty
9

10 11
matrix:
    include:
12 13 14 15 16 17
################################
# Test Buildbots
# Deployer does not operate on these. See Deployer Buildbots, below.
# These bots are disabled when a deployment is triggered by 'deployer' branch name AND DPL_TERMINATE_TESTS=1.
# These bots remain enabled when a deployment is triggered by release tag.
################################
18 19 20
        - os: linux
          addons:
            apt:
SteelT committed
21 22
              sources:
              - sourceline: 'ppa:stjr/srb2'
23 24 25 26 27
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
28
              - libopenmpt-dev
SteelT committed
29
              - libcurl4-openssl-dev
30
              - p7zip-full
31
              - gcc-4.4
32
          compiler: gcc-4.4
33
          env: GCC44=1
34
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
35
          #gcc-4.4 (Ubuntu/Linaro 4.4.7-8ubuntu1) 4.4.7
36 37 38
        - os: linux
          addons:
            apt:
SteelT committed
39 40
              sources:
              - sourceline: 'ppa:stjr/srb2'
41 42 43 44 45
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
46
              - libopenmpt-dev
SteelT committed
47
              - libcurl4-openssl-dev
48
              - p7zip-full
49
              - gcc-4.6
50
          compiler: gcc-4.6
51
          env: GCC46=1
52
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
53
          #gcc-4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2) 4.6.4
54 55 56
        - os: linux
          addons:
            apt:
SteelT committed
57 58
              sources:
              - sourceline: 'ppa:stjr/srb2'
59 60 61 62 63
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
64
              - libopenmpt-dev
SteelT committed
65
              - libcurl4-openssl-dev
66
              - p7zip-full
67
              - gcc-4.7
68
          compiler: gcc-4.7
Alam Ed Arias committed
69
          env: GCC47=1
70
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
71
          #gcc-4.7
72
        - os: linux
73
          compiler: gcc
74
          env: GCC48=1
75
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
76
          #gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
77
        - os: linux
78 79 80 81
          addons:
            apt:
              sources:
              - ubuntu-toolchain-r-test
SteelT committed
82
              - sourceline: 'ppa:stjr/srb2'
83
              packages:
84 85 86 87
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
88
              - libopenmpt-dev
SteelT committed
89
              - libcurl4-openssl-dev
90
              - p7zip-full
91
              - gcc-4.8
92
          compiler: gcc-4.8
93
          env: GCC48=1
94
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
95
          #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
96 97 98 99 100
        - os: linux
          addons:
            apt:
              sources:
              - ubuntu-toolchain-r-test
SteelT committed
101
              - sourceline: 'ppa:stjr/srb2'
102 103 104 105 106
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
107
              - libopenmpt-dev
SteelT committed
108
              - libcurl4-openssl-dev
109 110 111
              - p7zip-full
              - gcc-7
          compiler: gcc-7
112
          env: WFLAGS="-Wno-tautological-compare -Wno-error=implicit-fallthrough -Wno-implicit-fallthrough" GCC72=1
113
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
114
          #gcc-7 (Ubuntu 7.2.0-1ubuntu1~14.04) 7.2.0 20170802
115 116 117 118 119
        - os: linux
          addons:
            apt:
              sources:
              - ubuntu-toolchain-r-test
SteelT committed
120
              - sourceline: 'ppa:stjr/srb2'
121 122 123 124 125
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
126
              - libopenmpt-dev
SteelT committed
127
              - libcurl4-openssl-dev
128 129 130
              - p7zip-full
              - gcc-8
          compiler: gcc-8
131
          env: WFLAGS="-Wno-tautological-compare -Wno-error=implicit-fallthrough -Wno-implicit-fallthrough -Wno-error=format-overflow -Wno-error=format-truncation" GCC81=1
132
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
133
          #gcc-8 (Ubuntu 7.2.0-1ubuntu1~14.04) 8.1.0
134
        - os: linux
135
          compiler: clang
136
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
137
          #clang version 3.5.0 (tags/RELEASE_350/final)
138
        - os: linux
139
          addons:
140 141 142
            apt:
              sources:
              - llvm-toolchain-precise-3.5
SteelT committed
143
              - sourceline: 'ppa:stjr/srb2'
144 145 146 147 148
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
149
              - libopenmpt-dev
SteelT committed
150
              - libcurl4-openssl-dev
151 152
              - p7zip-full
              - clang-3.5
153
          compiler: clang-3.5
154
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
155 156 157 158 159 160 161
          #Ubuntu clang version 3.5.0-4ubuntu2~trusty2 (tags/RELEASE_350/final) (based on LLVM 3.5.0)
        - os: linux
          addons:
            apt:
              sources:
              - llvm-toolchain-precise-3.6
              - ubuntu-toolchain-r-test
SteelT committed
162
              - sourceline: 'ppa:stjr/srb2'
163 164 165 166 167
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
168
              - libopenmpt-dev
SteelT committed
169
              - libcurl4-openssl-dev
170 171 172
              - p7zip-full
              - clang-3.6
          compiler: clang-3.6
173
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
174
          #Ubuntu clang version 3.6.2-svn240577-1~exp1 (branches/release_36) (based on LLVM 3.6.2)
175 176 177 178 179 180
        - os: linux
          addons:
            apt:
              sources:
              - llvm-toolchain-precise-3.7
              - ubuntu-toolchain-r-test
SteelT committed
181
              - sourceline: 'ppa:stjr/srb2'
182 183 184 185 186
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
187
              - libopenmpt-dev
SteelT committed
188
              - libcurl4-openssl-dev
189 190 191
              - p7zip-full
              - clang-3.7
          compiler: clang-3.7
192
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
193
          #Ubuntu clang version 3.7.1-svn253571-1~exp1 (branches/release_37) (based on LLVM 3.7.1)
194 195 196 197 198 199
        - os: linux
          addons:
            apt:
              sources:
              - llvm-toolchain-precise-3.8
              - ubuntu-toolchain-r-test
SteelT committed
200
              - sourceline: 'ppa:stjr/srb2'
201 202 203 204 205
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
206
              - libopenmpt-dev
SteelT committed
207
              - libcurl4-openssl-dev
208 209 210
              - p7zip-full
              - clang-3.8
          compiler: clang-3.8
211
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
212
          #clang version 3.8.1-svn271127-1~exp1 (branches/release_38)
213 214 215 216 217 218
        - os: linux
          addons:
            apt:
              sources:
              - llvm-toolchain-precise-3.9
              - ubuntu-toolchain-r-test
SteelT committed
219
              - sourceline: 'ppa:stjr/srb2'
220 221 222 223 224
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
225
              - libopenmpt-dev
SteelT committed
226
              - libcurl4-openssl-dev
227 228 229
              - p7zip-full
              - clang-3.9
          compiler: clang-3.9
230
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
231
          #clang version 3.9.X
232 233 234 235 236 237
#        - os: linux
#          addons:
#            apt:
#              sources:
#              - llvm-toolchain-precise-4.0
#              - ubuntu-toolchain-r-test
SteelT committed
238
#              - sourceline: 'ppa:stjr/srb2'
239 240 241 242 243
#              packages:
#              - libsdl2-mixer-dev
#              - libpng-dev
#              - libgl1-mesa-dev
#              - libgme-dev
244
#              - libopenmpt-dev
245 246 247
#              - p7zip-full
#              - clang-4.0
#          compiler: clang-4.0
248
#          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
249 250 251 252 253 254 255
#          #clang version 4.0.X
#        - os: linux
#          addons:
#            apt:
#              sources:
#              - llvm-toolchain-precise-5.0
#              - ubuntu-toolchain-r-test
SteelT committed
256
#              - sourceline: 'ppa:stjr/srb2'
257 258 259 260 261
#              packages:
#              - libsdl2-mixer-dev
#              - libpng-dev
#              - libgl1-mesa-dev
#              - libgme-dev
262
#              - libopenmpt-dev
263 264 265
#              - p7zip-full
#              - clang-5.0
#          compiler: clang-5.0
266
#          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
267
#          #clang version 5.0.X
Alam Ed Arias committed
268
#        - os: osx
269
#          osx_image: beta-xcode6.1
270
#          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
271 272 273 274
#          #Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
#        - os: osx
#          osx_image: beta-xcode6.2
#          compiler: gcc
275
#          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
276 277 278
#          #Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
##        - os: osx
##          osx_image: beta-xcode6.3
279
##          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
280 281 282
##          #I think xcode.6.3 VM is broken, it does not boot
#        - os: osx
#          osx_image: xcode6.4
283
#          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
284 285 286
#          #Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
#        - os: osx
#          osx_image: xcode7
287
#          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
288 289 290
#          #Apple LLVM version 7.0.0 (clang-700.0.72)
#        - os: osx
#          osx_image: xcode7.1
291
#          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
292 293 294
#          #Apple LLVM version 7.0.0 (clang-700.1.76)
#        - os: osx
#          osx_image: xcode7.2
295
#          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
296
#          #Apple LLVM version 7.0.2 (clang-700.1.81)
Alam Ed Arias committed
297 298
#        - os: osx
#          osx_image: xcode7.3
299 300 301
#          #Apple LLVM version 7.3.0 (clang-703.0.31)
#        - os: osx
#          osx_image: xcode7.3
Alam Ed Arias committed
302
#          #Apple LLVM version 7.3.0 (clang-703.0.31)
Alam Ed Arias committed
303
        - os: osx
304
          if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
Alam Ed Arias committed
305
          #Default: macOS 10.13 and Xcode 9.4.1
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336


################################
# Deployer Buildbots - OSX
################################
        - os: osx
          if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
              AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
              AND env(DPL_TERMINATE_MAIN) != "1"
          env:
          - _DPL_JOB_ENABLED=1
          - _DPL_JOB_NAME=osx
          - _DPL_FTP_TARGET=1
          - _DPL_PACKAGE_BINARY=1
          #Apple LLVM version 7.3.0 (clang-703.0.31)


################################
# Deployer Buildbots - Linux assets
# Set DPL_TERMINATE_ASSETS to disable all of these
# List Ubuntu LTS next, newest to oldest
# Then list non-LTS, newest to oldest
################################
        - os: linux
          addons:
            apt:
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
SteelT committed
337
              - libcurl4-openssl-dev
338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473
              - p7zip-full
              - gcc-4.8
          compiler: gcc-4.8
          dist: xenial
          if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
              AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
              AND env(DPL_TERMINATE_ASSETS) != "1"
          env:
          - _DPL_JOB_ENABLED=1
          - _DPL_JOB_NAME=bionic-asset
          - _DPL_DPUT_TARGET=1
          - _DPL_PACKAGE_SOURCE=1
          - _DPL_PACKAGE_MAIN=0
          - _DPL_PACKAGE_ASSET=1
          - PACKAGE_DISTRO=bionic
          #- PACKAGE_SUBVERSION=~18.04bionic
          #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5

        ################################
        # The below asset bots produce packages that occupy too much space.
        # It would be nice if the asset files were not included in the source package itself,
        # so these can deploy to each Ubuntu target without manual intervention.
        #
        # Currently, to get around Launchpad's space limitation,
        # copy the packages from *one* bot and the space usage is not increased.
        ################################
        # - os: linux
        #   addons:
        #     apt:
        #       packages:
        #       - libsdl2-mixer-dev
        #       - libpng-dev
        #       - libgl1-mesa-dev
        #       - libgme-dev
        #       - p7zip-full
        #       - gcc-4.8
        #   compiler: gcc-4.8
        #   dist: trusty
        #   if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
        #       AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
        #       AND env(DPL_TERMINATE_ASSETS) != "1"
        #   env:
        #   - _DPL_JOB_ENABLED=1
        #   - _DPL_JOB_NAME=trusty-asset
        #   - _DPL_DPUT_TARGET=1
        #   - _DPL_PACKAGE_SOURCE=1
        #   - _DPL_PACKAGE_MAIN=0
        #   - _DPL_PACKAGE_ASSET=1
        #   - PACKAGE_DISTRO=trusty
        #   #- PACKAGE_SUBVERSION=~14.04trusty
        #   #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
        # - os: linux
        #   addons:
        #     apt:
        #       packages:
        #       - libsdl2-mixer-dev
        #       - libpng-dev
        #       - libgl1-mesa-dev
        #       - libgme-dev
        #       - p7zip-full
        #       - gcc-4.8
        #   compiler: gcc-4.8
        #   dist: xenial
        #   if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
        #       AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
        #       AND env(DPL_TERMINATE_ASSETS) != "1"
        #   env:
        #   - _DPL_JOB_ENABLED=1
        #   - _DPL_JOB_NAME=disco-asset
        #   - _DPL_DPUT_TARGET=1
        #   - _DPL_PACKAGE_SOURCE=1
        #   - _DPL_PACKAGE_MAIN=0
        #   - _DPL_PACKAGE_ASSET=1
        #   - PACKAGE_DISTRO=disco
        #   #- PACKAGE_SUBVERSION=~19.04disco
        #   #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
        # - os: linux
        #   addons:
        #     apt:
        #       packages:
        #       - libsdl2-mixer-dev
        #       - libpng-dev
        #       - libgl1-mesa-dev
        #       - libgme-dev
        #       - p7zip-full
        #       - gcc-4.8
        #   compiler: gcc-4.8
        #   dist: xenial
        #   if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
        #       AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
        #       AND env(DPL_TERMINATE_ASSETS) != "1"
        #   env:
        #   - _DPL_JOB_ENABLED=1
        #   - _DPL_JOB_NAME=cosmic-asset
        #   - _DPL_DPUT_TARGET=1
        #   - _DPL_PACKAGE_SOURCE=1
        #   - _DPL_PACKAGE_MAIN=0
        #   - _DPL_PACKAGE_ASSET=1
        #   - PACKAGE_DISTRO=cosmic
        #   #- PACKAGE_SUBVERSION=~18.10cosmic
        #   #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
        # - os: linux
        #   addons:
        #     apt:
        #       packages:
        #       - libsdl2-mixer-dev
        #       - libpng-dev
        #       - libgl1-mesa-dev
        #       - libgme-dev
        #       - p7zip-full
        #       - gcc-4.8
        #   compiler: gcc-4.8
        #   dist: xenial
        #   if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
        #       AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
        #       AND env(DPL_TERMINATE_ASSETS) != "1"
        #   env:
        #   - _DPL_JOB_ENABLED=1
        #   - _DPL_JOB_NAME=xenial-asset
        #   - _DPL_DPUT_TARGET=1
        #   - _DPL_PACKAGE_SOURCE=1
        #   - _DPL_PACKAGE_MAIN=0
        #   - _DPL_PACKAGE_ASSET=1
        #   - PACKAGE_DISTRO=xenial
        #   #- PACKAGE_SUBVERSION=~16.04xenial
        #   #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5


################################
# Deployer Buildbots - Linux binaries
# List Ubuntu LTS, newest to oldest
# Then list non-LTS, newest to oldest
################################
        - os: linux
          addons:
            apt:
Marco Z committed
474 475 476
              sources:
              - ubuntu-toolchain-r-test
              - sourceline: 'ppa:stjr/srb2'
477 478 479 480 481
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
Marco Z committed
482
              - libopenmpt-dev
SteelT committed
483
              - libcurl4-openssl-dev
484 485 486
              - p7zip-full
              - gcc-4.8
          compiler: gcc-4.8
487
          dist: xenial
488 489 490 491 492
          if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
              AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
              AND env(DPL_TERMINATE_MAIN) != "1"
          env:
          - _DPL_JOB_ENABLED=1
Marco Z committed
493
          - _DPL_JOB_NAME=eoan
494 495
          - _DPL_DPUT_TARGET=1
          - _DPL_PACKAGE_SOURCE=1
Marco Z committed
496 497
          - PACKAGE_DISTRO=eoan
          - PACKAGE_SUBVERSION=~19.10eoan
498 499 500 501
          #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
        - os: linux
          addons:
            apt:
Marco Z committed
502 503 504
              sources:
              - ubuntu-toolchain-r-test
              - sourceline: 'ppa:stjr/srb2'
505 506 507 508 509
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
Marco Z committed
510
              - libopenmpt-dev
SteelT committed
511
              - libcurl4-openssl-dev
512 513 514
              - p7zip-full
              - gcc-4.8
          compiler: gcc-4.8
515
          dist: xenial
516 517 518 519 520
          if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
              AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
              AND env(DPL_TERMINATE_MAIN) != "1"
          env:
          - _DPL_JOB_ENABLED=1
Marco Z committed
521
          - _DPL_JOB_NAME=disco
522 523
          - _DPL_DPUT_TARGET=1
          - _DPL_PACKAGE_SOURCE=1
Marco Z committed
524 525
          - PACKAGE_DISTRO=disco
          - PACKAGE_SUBVERSION=~19.04disco
526 527 528 529
          #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
        - os: linux
          addons:
            apt:
Marco Z committed
530 531 532
              sources:
              - ubuntu-toolchain-r-test
              - sourceline: 'ppa:stjr/srb2'
533 534 535 536 537
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
Marco Z committed
538
              - libopenmpt-dev
SteelT committed
539
              - libcurl4-openssl-dev
540 541 542
              - p7zip-full
              - gcc-4.8
          compiler: gcc-4.8
543
          dist: xenial
544 545 546 547 548
          if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
              AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
              AND env(DPL_TERMINATE_MAIN) != "1"
          env:
          - _DPL_JOB_ENABLED=1
Marco Z committed
549
          - _DPL_JOB_NAME=bionic
550 551
          - _DPL_DPUT_TARGET=1
          - _DPL_PACKAGE_SOURCE=1
Marco Z committed
552 553
          - PACKAGE_DISTRO=bionic
          - PACKAGE_SUBVERSION=~18.04bionic
554 555 556 557
          #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
        - os: linux
          addons:
            apt:
Marco Z committed
558 559 560
              sources:
              - ubuntu-toolchain-r-test
              - sourceline: 'ppa:stjr/srb2'
561 562 563 564 565
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
Marco Z committed
566
              - libopenmpt-dev
SteelT committed
567
              - libcurl4-openssl-dev
568 569 570 571 572 573 574 575 576
              - p7zip-full
              - gcc-4.8
          compiler: gcc-4.8
          dist: xenial
          if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
              AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
              AND env(DPL_TERMINATE_MAIN) != "1"
          env:
          - _DPL_JOB_ENABLED=1
Marco Z committed
577
          - _DPL_JOB_NAME=xenial
578 579
          - _DPL_DPUT_TARGET=1
          - _DPL_PACKAGE_SOURCE=1
Marco Z committed
580 581
          - PACKAGE_DISTRO=xenial
          - PACKAGE_SUBVERSION=~16.04xenial
582 583 584 585
          #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
        - os: linux
          addons:
            apt:
Marco Z committed
586 587 588
              sources:
              - ubuntu-toolchain-r-test
              - sourceline: 'ppa:stjr/srb2'
589 590 591 592 593
              packages:
              - libsdl2-mixer-dev
              - libpng-dev
              - libgl1-mesa-dev
              - libgme-dev
Marco Z committed
594
              - libopenmpt-dev
SteelT committed
595
              - libcurl4-openssl-dev
596 597 598
              - p7zip-full
              - gcc-4.8
          compiler: gcc-4.8
Marco Z committed
599
          dist: trusty
600 601 602 603 604
          if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
              AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
              AND env(DPL_TERMINATE_MAIN) != "1"
          env:
          - _DPL_JOB_ENABLED=1
Marco Z committed
605
          - _DPL_JOB_NAME=trusty
606 607
          - _DPL_DPUT_TARGET=1
          - _DPL_PACKAGE_SOURCE=1
Marco Z committed
608 609
          - PACKAGE_DISTRO=trusty
          - PACKAGE_SUBVERSION=~14.04trusty
610
          #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
611
    allow_failures:
612 613 614
      - compiler: clang-3.5
      - compiler: clang-3.6
      - compiler: clang-3.7
615
      - compiler: clang-3.8
616 617
      - compiler: clang-3.9
      - compiler: clang-4.0
Alam Ed Arias committed
618
      - compiler: clang-5.0
619

620

Alam Ed Arias committed
621
cache:
622
  apt: true
623
  ccache: true
Alam Ed Arias committed
624
  directories:
625
  - $HOME/srb2_cache
Alam Ed Arias committed
626

627

628 629
addons:
  apt:
SteelT committed
630 631
    sources:
    - sourceline: 'ppa:stjr/srb2'
632
    packages:
633
    - libsdl2-mixer-dev
634
    - libpng-dev
635
    - libgl1-mesa-dev
636
    - libgme-dev
637
    - zlib1g-dev
638
    - libopenmpt-dev
SteelT committed
639
    - libcurl4-openssl-dev
640
    - p7zip-full
641
  homebrew:
642 643
    taps:
    - mazmazz/srb2
644
    packages:
645
    - sdl2_mixer
646 647
    - game-music-emu
    - p7zip
648
    - libopenmpt
649
    - cmake
SteelT committed
650
    - curl
651
    update: true
652

653

654 655 656 657

before_install:
  # Initialize Deployer defaults
  - . ./deployer/travis/deployer_defaults.sh
Marco Z committed
658

659 660 661
  # Initialize Deployer; check if Deployer is enabled
  # This needs to be run in the current shell so that $__DPL_ACTIVE is set for this session
  - . ./deployer/travis/deployer.sh
Marco Z committed
662 663 664

  # Also check if we should now terminate -- see `deployer.sh` for conditions.
  # This should never happen on non-release buildbots when Deployer is not triggered.
665 666 667 668 669 670
  - if [[ "$__DPL_TRY_TERMINATE_EARLY" == "1" ]]; then
      if [[ "$__DPL_ACTIVE" != "1" ]]; then
        echo "Exiting early because this job is not deploying.";
        exit;
      fi;
    fi
Marco Z committed
671

672 673 674 675 676 677 678
  # If we're triggered by release tag, force ASSET_FILES_OPTIONAL_GET=1
  - if [[ "$__DPL_TAG_ELIGIBLE" = "1" ]]; then
      ASSET_FILES_OPTIONAL_GET=1;
    fi;


install:
679
  # Install OS X library dependencies via Homebrew
680 681 682 683
  # Do this differently for release buildbots:
  #     * `brew install --build-bottle` builds libraries for x86_64's lowest common denominator CPU, core2
  #     * `sdl2_mixer` requires options from the formula tap https://github.com/mazmazz/homebrew-srb2
  #     * `brew postinstall` runs post-install scripts after building a bottle
684
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
685 686
      if [[ "$__DPL_ACTIVE" == "1" ]]; then
        brew install --build-bottle sdl2 game-music-emu;
687
        brew install --build-bottle mazmazz/srb2/sdl2_mixer --with-flac --with-mpg123;
688
        brew postinstall sdl2 game-music-emu mazmazz/srb2/sdl2_mixer;
689
      fi;
690 691 692 693
    fi
  - mkdir -p $HOME/srb2_cache


694
before_script:
695 696
  # OLDPWD is root repo folder
  - OLDPWD=$PWD
697 698
  - __ASSET_DIRECTORY="$OLDPWD/assets/installer"
  - mkdir -p "$__ASSET_DIRECTORY"
699 700
  - cd "$HOME/srb2_cache"

701
  # Get stat command so we know what the cached archive date is.
702 703 704 705 706 707 708 709
  # stat is different for OSX
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      STATCMD="stat -f %m";
    else
      STATCMD="stat -c %y";
    fi

  # Get asset files (required for MD5)
Marco Z committed
710
  # See `deployer_defaults.sh` for asset download path
711 712 713 714 715
  - if [[ "$ASSET_ARCHIVE_PATH" != "" ]]; then
      if [ -f "$(basename $ASSET_ARCHIVE_PATH)" ]; then
        echo "$(basename $ASSET_ARCHIVE_PATH) cache date -- $($STATCMD $(basename $ASSET_ARCHIVE_PATH))";
      fi;
      wget --verbose --server-response -N "$ASSET_ARCHIVE_PATH";
716
      7z x "$(basename $ASSET_ARCHIVE_PATH)" -o"$__ASSET_DIRECTORY" -aos;
717 718 719
    fi;

  # Get optional files too
720
  - if [[ "$__DPL_ACTIVE" == "1" ]] && [[ "$ASSET_FILES_OPTIONAL_GET" == "1" ]] && [[ "$ASSET_ARCHIVE_OPTIONAL_PATH" != "" ]]; then
721 722 723 724
      if [ -f "$(basename $ASSET_ARCHIVE_OPTIONAL_PATH)" ]; then
        echo "$(basename $ASSET_ARCHIVE_OPTIONAL_PATH) cache date -- $($STATCMD $(basename $ASSET_ARCHIVE_OPTIONAL_PATH))";
      fi;
      wget --verbose --server-response -N "$ASSET_ARCHIVE_OPTIONAL_PATH";
725
      7z x "$(basename $ASSET_ARCHIVE_OPTIONAL_PATH)" -o"$__ASSET_DIRECTORY" -aos;
726 727
    fi;

728
  # Go back to root repo folder
729 730 731
  - cd "$OLDPWD"

  # Prepare CMake asset lists
732
  - SRB2_ASSET_HASHED=$(echo ${ASSET_FILES_HASHED// /\;})
733
  - SRB2_ASSET_DOCS=$(echo ${ASSET_FILES_DOCS// /\;})
734
  - SRB2_ASSET_DIRECTORY="$__ASSET_DIRECTORY"
735 736

  # Prepare CMake
737 738
  - mkdir build
  - cd build
739
  - mkdir package
740
  - export CFLAGS="-Wall -W -Werror $WFLAGS"
741
  - export CCACHE_COMPRESS=true
742 743 744 745
  # If OS X, set -march=core2 to build compatible binaries with old Macs
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      export CFLAGS="${CFLAGS} -march=core2";
    fi;
746
  - cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/bin -DCPACK_PACKAGE_DIRECTORY=$PWD/package
747 748
      -DSRB2_ASSET_HASHED="${SRB2_ASSET_HASHED}" -DSRB2_ASSET_DOCS="${SRB2_ASSET_DOCS}"
      -DSRB2_ASSET_DIRECTORY="${SRB2_ASSET_DIRECTORY}"
749 750 751
      -DCPACK_PACKAGE_DESCRIPTION_SUMMARY="${PROGRAM_NAME}"
      -DCPACK_PACKAGE_VENDOR="${PROGRAM_VENDOR}"
      -DSRB2_SDL2_EXE_NAME="${PROGRAM_FILENAME}"
752

753 754 755 756 757 758 759 760 761
script:
  # Build our Makefile from Cmake!
  - if [[ "$__DPL_ACTIVE" == "1" ]]; then
      . ../deployer/travis/deployer_build.sh;
    else
      make -k;
    fi;

after_success:
762 763
  # Run the upload scripts
  # These do nothing if Deployer is not triggered
764 765
  - . ../deployer/travis/deployer_ftp.sh
  - . ../deployer/travis/deployer_dput.sh