2014-10-09 22:52:33 -06:00
|
|
|
language: cpp
|
2014-10-11 20:16:54 -06:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
2016-12-05 23:49:32 -07:00
|
|
|
dist: trusty
|
|
|
|
|
2014-10-11 20:16:54 -06:00
|
|
|
compiler:
|
2014-12-11 08:29:29 -07:00
|
|
|
- gcc
|
|
|
|
#- clang
|
2014-10-11 20:16:54 -06:00
|
|
|
|
2015-02-02 00:31:43 -07:00
|
|
|
# whitelist
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2016-12-05 23:16:48 -07:00
|
|
|
|
2014-10-11 21:36:39 -06:00
|
|
|
before_install:
|
2014-10-11 22:16:15 -06:00
|
|
|
|
2014-10-11 21:36:39 -06:00
|
|
|
if [ ${TRAVIS_OS_NAME} = 'linux' ];
|
|
|
|
then
|
2016-12-05 23:49:32 -07:00
|
|
|
|
|
|
|
|
2016-12-05 23:29:43 -07:00
|
|
|
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
|
2016-12-05 23:49:32 -07:00
|
|
|
|
|
|
|
sudo add-apt-repository -y ppa:george-edison55/precise-backports;
|
|
|
|
|
|
|
|
sudo apt-get remove -qq cmake cmake-data
|
|
|
|
sudo apt-get autoremove -qq
|
|
|
|
|
2016-12-05 23:29:43 -07:00
|
|
|
sudo apt-get update -qq;
|
|
|
|
sudo apt-get install python-software-properties;
|
|
|
|
sudo apt-get update;
|
|
|
|
sudo apt-get install gcc-5 g++-5;
|
2016-12-05 23:49:32 -07:00
|
|
|
sudo apt-get install software-properties-common;
|
2016-12-05 23:29:43 -07:00
|
|
|
sudo apt-get update;
|
|
|
|
sudo apt-get update -qq;
|
2016-12-05 23:49:32 -07:00
|
|
|
sudo apt-get install cmake cmake-data;
|
2014-10-11 21:36:39 -06:00
|
|
|
fi
|
2014-10-12 01:02:26 -06:00
|
|
|
|
2014-10-11 22:08:07 -06:00
|
|
|
install:
|
2016-12-05 23:49:32 -07:00
|
|
|
# gcc 5
|
2016-12-05 23:31:46 -07:00
|
|
|
- if [ "$CXX" == "g++" ]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10; fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 10; fi
|
2014-10-11 22:41:29 -06:00
|
|
|
|
2014-10-11 22:08:07 -06:00
|
|
|
# clang 3.4
|
2016-12-05 23:31:46 -07:00
|
|
|
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
|
|
|
|
- if [ "$CXX" == "clang++" ]; then sudo apt-get install libc++1 libc++abi-dev || true; fi
|
2014-10-12 00:43:29 -06:00
|
|
|
|
2014-10-11 22:08:07 -06:00
|
|
|
- if [ "$CXX" == "clang++" ]; then export CXXFLAGS="-std=c++0x -stdlib=libc++"; fi
|
|
|
|
- if [ "$CXX" == "clang++" ]; then svn co --quiet http://llvm.org/svn/llvm-project/libcxx/trunk libcxx; fi
|
|
|
|
|
|
|
|
- if [ "$CXX" == "clang++" ]; then cd libcxx/lib && bash buildit; fi
|
|
|
|
- if [ "$CXX" == "clang++" ]; then sudo cp ./libc++.so.1.0 /usr/lib/; fi
|
|
|
|
- if [ "$CXX" == "clang++" ]; then sudo mkdir /usr/include/c++/v1; fi
|
|
|
|
- if [ "$CXX" == "clang++" ]; then cd .. && sudo cp -r include/* /usr/include/c++/v1/; fi
|
|
|
|
- if [ "$CXX" == "clang++" ]; then cd /usr/lib && sudo ln -sf libc++.so.1.0 libc++.so; fi
|
|
|
|
- if [ "$CXX" == "clang++" ]; then sudo ln -sf libc++.so.1.0 libc++.so.1 && cd $cwd; fi
|
2014-10-11 23:06:26 -06:00
|
|
|
# - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update; fi
|
2014-10-11 23:09:26 -06:00
|
|
|
- echo $PWD
|
2014-10-11 23:49:22 -06:00
|
|
|
- echo $CXX
|
2014-10-11 23:17:57 -06:00
|
|
|
- if [ "$CXX" == "clang++" ]; then cd build/KjellKod/g3log || true; fi
|
|
|
|
- echo $PWD
|
2014-10-11 23:00:18 -06:00
|
|
|
|
|
|
|
script: "./scripts/buildAndRunTests.sh"
|
2016-12-05 23:26:14 -07:00
|
|
|
|
2016-12-05 23:23:16 -07:00
|
|
|
|
2016-12-05 23:49:32 -07:00
|
|
|
|