Skip to content

Commit

Permalink
Update travis build to new container infrastructure (w/o sudo)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Oct 5, 2016
1 parent 42b36ec commit 3ef51a1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
18 changes: 17 additions & 1 deletion .travis.yml
Expand Up @@ -5,7 +5,23 @@ compiler:
env:
- CXX11=1
- CXX11=0
before_install: ./util/travis/before_install.sh
sudo: false
addons:
apt:
sources:
- llvm-toolchain-precise-3.8
- ubuntu-toolchain-r-test
packages:
- cmake
- libgd2-noxpm-dev
- libsqlite3-dev
- p7zip
- g++-6
- clang-3.8
before_install:
- # Nothing ever works correctly with precise, use a custom libleveldb build
- wget http://minetest.kitsunemimi.pw/libleveldb-1.18-ubuntu12.04.7z
- 7zr x -olibleveldb libleveldb-1.18-ubuntu12.04.7z
script: ./util/travis/script.sh
notifications:
email: false
Expand Down
20 changes: 0 additions & 20 deletions util/travis/before_install.sh

This file was deleted.

6 changes: 5 additions & 1 deletion util/travis/script.sh
Expand Up @@ -2,5 +2,9 @@

mkdir -p travisbuild
cd travisbuild
cmake -DENABLE_LEVELDB=1 -DUSE_CXX11=$CXX11 ..
cmake \
-DENABLE_LEVELDB=1 -DUSE_CXX11=$CXX11 \
-DLEVELDB_LIBRARY=../libleveldb/lib/libleveldb.so \
-DLEVELDB_INCLUDE_DIR=../libleveldb/include \
..
make -j2

0 comments on commit 3ef51a1

Please sign in to comment.