forked from RobertBeckebans/RBDOOM-3-BFG
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
66 lines (57 loc) · 2.46 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
language: cpp
os:
- linux
- osx
matrix:
fast_finish: true
compiler:
- gcc
- clang
- CXX=mingw; export CXX; true
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "UE8I6ubHMARmKBNBtDDW34DI+PlFe/g2XR4DStfAg34R193nevkpDj+WqBN88VCxN9Z57CMI5fweQUc6r5L5ZuQns8XKe4lu0AmtroOHf+e/FUDlSGz9DUZZk6oTwEtKrsg548ZTanU+fiFkwbvKwx/nHLdYzsI8PYgmw7vci8w="
addons:
coverity_scan:
project:
name: "OpenTechEngine/OpenTechBFG"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: 'mkdir build && cd build && if [ \"$CXX\" = \"mingw\" ]; then cmake -G \"Eclipse CDT4 - Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=../scripts/mingw32.toolchain.cmake -DCMAKE_BUILD_TYPE=Debug -DBUNDLED_FREETYPE=ON -DBUNDLED_OPENAL=ON ../ ;else cmake -G \"Eclipse CDT4 - Unix Makefiles\" -DCMAKE_BUILD_TYPE=Debug ../;fi'
build_command: "make -j 9"
branch_pattern: coverity
apt:
packages: [
libsdl2-dev libopenal-dev
]
before_install:
# this is allowed to fail so that pull requests can be built too
- openssl aes-256-cbc -K $encrypted_24fdd259e571_key -iv $encrypted_24fdd259e571_iv -in .travis/id_rsa.enc -out .travis/id_rsa -d || true
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then bash .travis/scripts/install.ubuntu.sh ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash .travis/scripts/install.osx.sh ; fi
script:
- mkdir -p build && cd build
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then bash ../.travis/scripts/build.linux.sh ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash ../.travis/scripts/build.osx.sh ; fi
- make
after_success:
- make package || true
- cd ..
- if [ "$CXX" = "g++" ]; then bash .travis/scripts/after_success.gcc.sh || true; fi
- if [ "$CXX" = "clang++" ]; then bash .travis/scripts/after_success.clang.sh || true; fi
- if [ "$CXX" = "mingw" ]; then bash .travis/scripts/after_success.mingw.sh || true; fi
after_failure:
- bash .travis/scripts/after_failure.sh
deploy:
provider: releases
api_key:
secure: CqNzdXDsCrmC8v7XaJEWARDOq2RcuRqsiAv/32TBgC681767jlC7zYFJHxAvrvx3iPTTlW3fsqiNEDhsqnraArO7M4CMOV9lEssZAJoMV25gWkNNqBwjwfLeS5VCmZPwrznXR4qfKMIsIHaKZNDEQiSlvd4PP8M0z5mDjh5oims=
file: "$TRAVIS_BUILD_DIR/build/OpenTechBFG-1.0.0-win32.exe"
skip_cleanup: true
on:
repo: "OpenTechEngine/OpenTechBFG"
tags: true
condition: $CXX = "mingw"