forked from svkaiser/Doom64EX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (67 loc) · 1.65 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
language: c++
dist: trusty
sudo: required
matrix:
include:
- os: linux
compiler: gcc
env: GCC_VERSION=5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- kubuntu-backports
packages:
- gcc-5
- g++-5
- cmake
- libpng-dev
- libgtest-dev
- libsdl2-net-dev
- os: linux
compiler: clang
env: CLANG_VERSION=3.5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
- kubuntu-backports
packages:
- clang-3.5
- cmake
- libstdc++-5-dev
- libpng-dev
- libgtest-dev
- libsdl2-net-dev
before_install:
# Set correct GCC or Clang versions.
- if [ -n "$GCC_VERSION" ]; then export CC="gcc-${GCC_VERSION}" CXX="g++-${GCC_VERSION}"; fi
- if [ -n "$CLANG_VERSION" ]; then export CC="clang-${CLANG_VERSION}" CXX="clang++-${CLANG_VERSION}"; fi
- which $CC
- which $CXX
install:
# Compile google test library
- cd /usr/src/gtest
- sudo cmake -Dgtest_disable_pthreads=ON .
- sudo cmake --build .
- sudo mv libg* /usr/local/lib/
- cd -
script:
# Compile our thing!
- mkdir build
- cd build
- cmake -DTESTING=ON -DCMAKE_BUILD_TYPE=Release ..
- cmake --build .
- ctest
notifications:
email: false
irc:
channels:
- "irc.oftc.net#doom64ex"
on_success: change
on_failure: always
template:
- "%{author}: (%{branch} - %{commit}) -> %{message}"
- "Change view -> %{compare_url}"
- "Build details -> %{build_url}"