forked from ShadowNinja/minetest-mapper-cpp
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: cpp | ||
compiler: | ||
- gcc | ||
- clang | ||
env: | ||
- CXX11=1 | ||
- CXX11=0 | ||
before_install: ./util/travis/before_install.sh | ||
script: ./util/travis/script.sh | ||
notifications: | ||
email: false | ||
matrix: | ||
fast_finish: true | ||
exclude: | ||
- env: CXX11=1 | ||
compiler: gcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash -e | ||
|
||
if [ $CC = "clang" ]; then | ||
export PATH="/usr/bin/:$PATH" | ||
sudo sh -c 'echo "deb http://ppa.launchpad.net/eudoxos/llvm-3.1/ubuntu precise main" >> /etc/apt/sources.list' | ||
sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-keys 92DE8183 | ||
sudo apt-get update | ||
sudo apt-get install llvm-3.1 | ||
sudo apt-get install clang | ||
fi | ||
|
||
sudo apt-get install cmake libgd2-noxpm-dev libsqlite3-dev \ | ||
p7zip-full | ||
|
||
# I love how nothing ever works correctly with precise | ||
wget http://sfan5.pf-control.de/libleveldb-1.18-ubuntu12.04.7z | ||
sudo 7z x -o/usr libleveldb-1.18-ubuntu12.04.7z | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash -e | ||
|
||
mkdir -p travisbuild | ||
cd travisbuild | ||
cmake -DENABLE_LEVELDB=1 -DUSE_CXX11=$CXX11 .. | ||
make -j2 |