-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
67 lines (54 loc) · 2.28 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
# Configuration for Travis CI
# See http://about.travis-ci.org/docs/user/getting-started/
env:
global:
- secure: "Xd8Rv317Ur9+Bu33+ugBDKus66MJ8uENlE0uYNqyCk+vU0N0+5/JEQMLNdi+jP4DskZ7S75GdYshT2A4CdLvBj3ZxGyw6vhlnSKAVVLE69B1H2V2+uRKq1T13qeqfEW1RrvwJv7mfN/B4AeytluugE9DCJC5hdB8owYHBq6TEa0="
addons:
coverity_scan:
project:
name: "des-testbed/libara"
description: "build submitted via Travis CI"
notification_email: mail@mfrey.net
build_command: "make NO_OMNET=TRUE"
branch_pattern: master
language: cpp
compiler:
- clang
- gcc
script: "pwd ; cd /home/travis/build/des-testbed/libara; pwd ; make test NO_OMNET=TRUE"
before_install:
# g++4.8.1
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
# clang 3.4
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
- sudo apt-get update -qq
install:
# g++4.8.1
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" == "g++" ]; then export CXX="g++-4.8"; fi
# clang 3.4
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
#- if [ "$CXX" == "clang++" ]; then export CXXFLAGS="-std=c++0x -stdlib=libc++"; fi
#- if [ "$CXX" == "clang++" ]; then svn co --quiet http://llvm.org/svn/llvm-project/libcxx/trunk libcxx; fi
- if [ "$CXX" == "clang++" ]; then svn co --quiet http://llvm.org/svn/llvm-project/libcxx/trunk@201601 libcxx; fi
- if [ "$CXX" == "clang++" ]; then cd libcxx/lib && bash buildit; fi
- if [ "$CXX" == "clang++" ]; then sudo cp ./libc++.so.1.0 /usr/lib/; fi
- if [ "$CXX" == "clang++" ]; then sudo mkdir /usr/include/c++/v1; fi
- if [ "$CXX" == "clang++" ]; then cd .. && sudo cp -r include/* /usr/include/c++/v1/; fi
- if [ "$CXX" == "clang++" ]; then cd /usr/lib && sudo ln -sf libc++.so.1.0 libc++.so; fi
- if [ "$CXX" == "clang++" ]; then sudo ln -sf libc++.so.1.0 libc++.so.1 && cd $cwd; fi
#- if [ "$CXX" == "clang++" ]; then export CXXFLAGS="-stdlib=libc++"; fi
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi
branches:
only:
- master
- develop
git:
submodules: false
notifications:
recipients:
- friedrich.grosse@gmail.com
- mail@mfrey.net
email:
on_success: change
on_failure: always