-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
54 lines (45 loc) · 1.66 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
language: cpp
compiler:
- gcc
- clang
env:
# this is our secret upload key $UPLOAD_TOKEN:
secure: "UJt1SJljQZBR55NaOOzzS5w3cvCSq9B8z813RsyHps+9+XWekO+x7+B2zkdP6QGO17cPrcVcY2MW74sxjzOCCzksdy6F4E1RfoDBDc/dD3bwX59LQPx+8mj+h9I7dxo399Tcj85BXGASGDkm/3nocCz47QoyPMZzo5wO/uNYYMw="
branches:
only:
- master
notifications:
email:
on_success: change
on_failure: change
irc:
channels:
# WORKAROUND: prevents notifications from forks
secure: "RG1of2s8vkMy0XitVlYLcOCXlv/R19CPDNJBy+tFdgYzLRMnai/bDUrqgx4e8MhrG19stzWtev00OZH42r3DtNcREKJIB5QZnsFFsG5mUdke9u+5D1vM2lvvPLXkpJ9ho6nPeZVA4JELetykVC94xVuYeQ6MyDnSAqrX/tYamE0="
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:boost-latest/ppa
- sudo apt-get update -qq
install:
- sudo apt-get install -qq zlib1g-dev libunshield-dev libboost-filesystem1.55-dev libboost-locale1.55-dev curl
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
before_script:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- cd .. && mkdir libnpa && cd libnpa
- curl http://f4ke.de/dev/fgre/downloads/libnpa-travis.tar.bz2 | tar jx --strip-components=2
- mv libnpa include
- 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 nptools-*.tar.bz2
fi