mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-12 18:30:25 +01:00
74 lines
2.0 KiB
YAML
74 lines
2.0 KiB
YAML
language: cpp
|
|
|
|
os:
|
|
- linux
|
|
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
|
|
before_install:
|
|
# use http://lint.travis-ci.org/ to validate changes
|
|
# sudo add-apt-repository -y ppa:h-rayflood/llvm;
|
|
# sudo apt-get install --allow-unauthenticated -qq clang-3.4
|
|
|
|
if [ ${TRAVIS_OS_NAME} = 'linux' ];
|
|
then
|
|
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
|
|
sudo apt-get update -qq;
|
|
fi
|
|
|
|
install:
|
|
# clang 3.4
|
|
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
|
|
- 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
|
|
|
|
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi
|
|
|
|
|
|
|
|
script: "
|
|
echo ${TRAVIS_OS_NAME};
|
|
echo ${TRAVIS_OS_NAME};
|
|
if [ ${TRAVIS_OS_NAME} = 'linux' ];
|
|
then
|
|
sudo apt-get -qq update;
|
|
sudo apt-get install python-software-properties;
|
|
sudo apt-get update;
|
|
sudo apt-get install gcc-4.8 g++-4.8;
|
|
sudo apt-get install cmake;
|
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10;
|
|
fi
|
|
|
|
|
|
if [ ${TRAVIS_OS_NAME} = 'linux' ];
|
|
then
|
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10;
|
|
fi
|
|
|
|
if [ ${TRAVIS_OS_NAME} = 'osx' ];
|
|
then
|
|
brew update;
|
|
fi
|
|
|
|
if [ '$CXX' = 'g++' ];
|
|
then
|
|
export CXX=g++-4.8;
|
|
fi
|
|
|
|
if [ '$CXX' = 'clang++' ];
|
|
then
|
|
export CXX=clang++-3.4;
|
|
fi
|
|
|
|
./scripts/buildAndRunTests.sh;
|
|
"
|