aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-07-01 19:28:33 +0200
committerSimon Warta <[email protected]>2015-07-01 19:28:33 +0200
commit457134f3b89108df8863b1ce1793c653a7e5a125 (patch)
tree529be50a4ca9328bd5d8b9709296e2cb592ff864
parenta59efe804c147b3f842734f33b7507ebdcf58e75 (diff)
parent3a95608f9cc6b5471740fc6d2f3bd3324f50c422 (diff)
Merge pull request #159 from webmaster128/travis-osx
Configure Travis CI for OSX and Linux builds
-rw-r--r--.travis.yml7
-rwxr-xr-xsrc/scripts/ci/build.sh4
-rwxr-xr-xsrc/scripts/ci/setup.sh19
3 files changed, 18 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml
index e1fe0daef..35f374658 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,7 @@ language: cpp
os:
- linux
+ - osx
compiler:
- clang
@@ -15,12 +16,12 @@ env:
matrix:
exclude:
+ - os: osx
+ compiler: gcc
- compiler: clang
env: BUILD_MODE="coverage"
-before_install:
- - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- - sudo apt-get update -qq
+sudo: required
install:
- ./src/scripts/ci/setup.sh
diff --git a/src/scripts/ci/build.sh b/src/scripts/ci/build.sh
index 5d88260d4..2d75a3901 100755
--- a/src/scripts/ci/build.sh
+++ b/src/scripts/ci/build.sh
@@ -13,5 +13,5 @@ fi
$CXX --version
python configure.py $CFG_FLAGS --cc=$CC --cc-bin=$CXX --with-openssl --with-sqlite --with-zlib
-make -j 4
-LD_LIBRARY_PATH=. ./botan-test
+make -j 2
+./botan-test
diff --git a/src/scripts/ci/setup.sh b/src/scripts/ci/setup.sh
index 85edf6a25..97019fd57 100755
--- a/src/scripts/ci/setup.sh
+++ b/src/scripts/ci/setup.sh
@@ -2,13 +2,18 @@
set -ev
-sudo apt-get install -y g++-4.8
-sudo apt-get install -y libssl-dev
-sudo apt-get install -y libz-dev
-sudo apt-get install -y libsqlite3-dev
-sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
-sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
-sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.8 90
+if [ "$TRAVIS_OS_NAME" = "linux" ]; then
+ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
+ sudo apt-get update -qq
+
+ sudo apt-get install -y g++-4.8
+ sudo apt-get install -y libssl-dev
+ sudo apt-get install -y libz-dev
+ sudo apt-get install -y libsqlite3-dev
+ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
+ sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.8 90
+fi
if [ "$BUILD_MODE" = "coverage" ]; then
wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz