Created
March 30, 2015 00:13
-
-
Save Naios/b00305e5893c45cd4294 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
language: cpp | |
compiler: | |
- gcc | |
- clang | |
git: | |
depth: 1 | |
before_install: | |
- sudo add-apt-repository -y ppa:kalakris/cmake | |
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
# g++4.8.1 | |
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi | |
# clang 3.4 | |
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi | |
- sudo apt-get -qq update | |
- sudo apt-get -qq install build-essential libtool make cmake | |
install: | |
- pwd | |
# g++4.8.1 | |
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi | |
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi | |
# 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 | |
- cd ~/build/Naios/FunctionalAI | |
- mkdir bin | |
- cd bin | |
- cmake ../ -DCMAKE_BUILD_TYPE=Release | |
script: | |
- $CXX --version | |
- make -j 4 | |
- ./FunctionalAI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment