Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f66d2a7

Browse files
committedDec 24, 2014
Travis integration
1 parent 722f02d commit f66d2a7

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
 

Diff for: ‎.travis.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: cpp
2+
compiler:
3+
- gcc
4+
- clang
5+
env:
6+
- CXX11=1
7+
- CXX11=0
8+
before_install: ./util/travis/before_install.sh
9+
script: ./util/travis/script.sh
10+
notifications:
11+
email: false
12+
matrix:
13+
fast_finish: true
14+
exclude:
15+
- env: CXX11=1
16+
compiler: gcc

Diff for: ‎util/travis/before_install.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash -e
2+
3+
if [ $CC = "clang" ]; then
4+
export PATH="/usr/bin/:$PATH"
5+
sudo sh -c 'echo "deb http://ppa.launchpad.net/eudoxos/llvm-3.1/ubuntu precise main" >> /etc/apt/sources.list'
6+
sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-keys 92DE8183
7+
sudo apt-get update
8+
sudo apt-get install llvm-3.1
9+
sudo apt-get install clang
10+
fi
11+
12+
sudo apt-get install cmake libgd2-noxpm-dev libsqlite3-dev \
13+
p7zip-full
14+
15+
# I love how nothing ever works correctly with precise
16+
wget http://sfan5.pf-control.de/libleveldb-1.18-ubuntu12.04.7z
17+
sudo 7z x -o/usr libleveldb-1.18-ubuntu12.04.7z
18+

Diff for: ‎util/travis/script.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash -e
2+
3+
mkdir -p travisbuild
4+
cd travisbuild
5+
cmake -DENABLE_LEVELDB=1 -DUSE_CXX11=$CXX11 ..
6+
make -j2

0 commit comments

Comments
 (0)
Please sign in to comment.