forked from SFTtech/openage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (61 loc) · 2.38 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
#travis ci config script
language: cpp
compiler:
- clang
- gcc
before_install:
- uname -a
- lsb_release -a
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test #gcc 4.8
- sudo apt-add-repository --yes ppa:zoogie/sdl2-snapshots #libsdl2
- sudo add-apt-repository --yes ppa:kubuntu-ppa/backports #cmake >=2.8.10
- sudo add-apt-repository --yes ppa:fkrull/deadsnakes #python3.3
- sudo apt-get update -qq
install:
- export CVERSION="4.8"
- sudo apt-get install -qq g++-${CVERSION}; #also needed for newer stdlib
- if [ "$CXX" = "g++" ]; then export CXX="g++-${CVERSION}" CC="gcc-${CVERSION}"; fi
- export CC=`which $CC`
- export CXX=`which $CXX`
- sudo apt-get install -qq python3.3 python3.3-dev libglew-dev libftgl-dev libfreetype6-dev libfontconfig1-dev libsdl2-dev libsdl2-image-dev cmake
- ( curl 'http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.xz' | xz -d | tar x && cd libogg-1.3.1 && ./configure --prefix=/usr && make && sudo make install DESTDIR=/ )
- ( curl 'http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz' | gzip -d | tar x && cd opus-1.1 && ./configure --prefix=/usr && make && sudo make install DESTDIR=/ )
- ( curl 'http://downloads.xiph.org/releases/opus/opusfile-0.5.tar.gz' | gzip -d | tar x && cd opusfile-0.5 && ./configure --prefix=/usr && make && sudo make install DESTDIR=/ )
before_script:
- cmake --version
- python --version
- ls -l /usr/bin/python*
- sudo ln -sf /usr/bin/python3.3 /usr/bin/python3
script:
- ./configure
- make
- make test
after_script:
- echo test build exited
notifications:
# recipients:
email:
on_success: change
on_failure: always
irc:
channels:
- "chat.freenode.net#sfttech"
template:
- "%{repository}/%{branch} (%{commit} - %{author}): %{message}"
use_notice: true
skip_join: true
#static analysis with coverty
env:
global:
- secure: "CK04R9TuA+gFFMBvyTw0DKbhr8wDnZY5wTTNs5CylArGAyzokHUr7tDRislQdJhvB4QI2rzIEuH3priHdPacl58ftwHL6Zy8tl3ByvUpGoN+XLHHw9TZP1gHK0S9bFwRcZdXyWNxZjudYvJDTbK7IwWuv/+HC2Ie/x161k4qeHc="
#addons:
# coverity_scan:
# project:
# name: "SFTtech/openage"
# description: "free age of empires 2 engine"
# notification_email: [email protected]
# build_command_prepend: "./configure"
# build_command: "make"
# branch_pattern: master