forked from SFTtech/openage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (64 loc) · 2.42 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
#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.x
- sudo apt-add-repository --yes ppa:sfttech/opusfile # opusfile
- sudo apt-get update -qq
install:
- export CVERSION="4.8"
- export PYVERSION="3.3"
- 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 python${PYVERSION} python${PYVERSION}-dev libglew-dev libftgl-dev libfreetype6-dev libfontconfig1-dev libsdl2-dev libsdl2-image-dev libopusfile-dev cmake
- wget -O /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py
- sudo python${PYVERSION} /tmp/get-pip.py
- sudo python${PYVERSION} -m pip install pep8
before_script:
- git pull --unshallow # the full git history is required for 'make checkfull'
- cmake --version
- ls -l /usr/bin/python*
- sudo ln -sf /usr/bin/python${PYVERSION} /usr/bin/python3
script:
- ./configure
- make openage # running 'make'/'make all' would cause 'make check' to run after building
- make runtest # running 'make test' would cause 'make check' to run after testing
- make checkfull # manually run 'make checkfull'
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