forked from arangodb/arangodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (48 loc) · 1.6 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
branches:
only:
- master
- devel
- "1.4"
- "2.3"
- "2.4"
- "2.5"
language: cpp
compiler: g++
before_install:
# g++4.9.2
- 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.9.2
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.9 gcc-4.9; fi
- if [ "$CXX" = "g++" ]; then sudo /bin/bash -c 'rm /usr/bin/gcc; ln -s /usr/bin/gcc-4.9 /usr/bin/gcc' ; fi
- if [ "$CXX" = "g++" ]; then sudo /bin/bash -c 'rm /usr/bin/g++; ln -s /usr/bin/g++-4.9 /usr/bin/g++' ; fi
- if [ "$CXX" = "g++" ]; then export CC="gcc-4.9"; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9"; fi
- ls -l /usr/bin/
# clang 3.4
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi
# gdb
- sudo apt-get -y install gdb
# prepare wrapper for gold
- sudo apt-get -y install binutils-gold
- mkdir -p ~/bin/gold
- echo '#!/bin/bash' > ~/bin/gold/ld
- echo 'gold "$@"' >> ~/bin/gold/ld
- chmod a+x ~/bin/gold/ld
- export CFLAGS="-B$HOME/bin/gold $CFLAGS"
- export CXXFLAGS="-B$HOME/bin/gold $CXXFLAGS"
before_script: "bash -c Installation/travisCI/before_script.sh"
script:
- "bash -c Installation/travisCI/build.sh"
after_failure: "bash -c Installation/travisCI/after_failure.sh"
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/806d92fa9ae97d241599
on_success: change
on_failure: always
on_start: false