This repository has been archived by the owner on May 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (54 loc) · 2.05 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
language: cpp
compiler:
- gcc
- clang
env:
# this is our secret upload key $UPLOAD_TOKEN:
secure: "Tp/N8TBX5E7RfUY8HyZhxqw8z1U99iqaG13YZkHu6gMnei8VX87P7tlX0Q3cclxq5N0OpI+sPi6gEWE1wBLd66AwXyVVUBA2zr5Wnc+YVC7JC9H517hXxvrUgSt+lw2r9U/RanQBN8NOKj3iV80rN98vI0huIRjM/V7kTLhb5Pw="
branches:
only:
- master
notifications:
email:
on_success: change
on_failure: change
irc:
channels:
# WORKAROUND: prevents notifications from forks
secure: "cFBjGVmmraRbxe+LnWuKop66LdYI9psXaOg34RfGp9U18VwJJh7j6urC1BqfFwb8iPyAd07svTePboAU7TwgBRZJyB4MlHwNUsM/t+tYfNZlLF5WMbmI/meIq5m2QeCUsLm1ydzfvYWMZEc2qhsxGtra6qtF6qofZFY3pu1cbFA="
template:
- "%{repository_name} (%{commit}): %{message}, details: %{build_url}"
on_success: change
on_failure: change
use_notice: true
skip_join: true
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository -y ppa:gstreamer-developers/ppa
- sudo add-apt-repository -y ppa:boost-latest/ppa
- sudo apt-get update -qq
install:
- >
sudo apt-get install -qq libpthread-stubs0-dev libgl1-mesa-dev libx11-dev
libxrandr-dev libfreetype6-dev libglew1.5-dev libjpeg8-dev libgpgme11-dev
libsndfile1-dev libopenal-dev libudev-dev
libgstreamer-plugins-base1.0-dev
libglib2.0-dev
libboost-locale1.55-dev
curl
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "clang++" ]; then sudo apt-get install -qq libstdc++-4.8-dev; fi
before_script:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
- curl http://f4ke.de/dev/fgre/downloads/sfml-travis.tar.bz2 | sudo tar jx --strip-components=1 -C /
- cd .. && mkdir libnpa && cd libnpa
- curl http://f4ke.de/dev/fgre/downloads/libnpa-travis.tar.bz2 | tar jx --strip-components=1
- cd $TRAVIS_BUILD_DIR
script:
- cmake . && make
after_success:
- |
if [ "$CXX" = "g++-4.8" ]; then
curl https://gist.githubusercontent.com/carstene1ns/a23f152a40a589f098c6/raw/upload.sh > upload.sh
make package && bash upload.sh libnpengine-*.tar.bz2
fi