2013-07-22 13:36:02 +00:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
env:
|
2013-08-20 03:41:54 +00:00
|
|
|
global:
|
|
|
|
# BBTOKEN
|
|
|
|
- secure: "gBp3VTkChQflgWBoEnHhA2y7+KCdHS8u+uqij6kh4v+I5bj/Bu7uEeqMDZwmRRoTkrDu6eYHxCJQOr9ODAVc2BP4Y8zUFWuVKUrkvP9Qeeqe/X+7WFuQSHMy3yC5ESb8LVdiy4aAQuSt0sHC0M3BdnBMTZ9Ergkcc9lmW6bu9XQ="
|
|
|
|
# GH_TOKEN
|
|
|
|
- secure: "Zdab8c1wnKcwYWEVBvtaClCzw7sYmFPZ47urG4jSeO5FL+M4MiR6c7STeoW7wge9k3uUyMTAodD/bJ0RhskBp0wbvg0UoYQaFRm+RwsDiM7CNj+fYM8wnV0cvTJj869NsqQ92zde6L5gFEHNDrVUwC6PJpIC4JxRRfzIA4/qH5A="
|
|
|
|
# DROPBOX_KEY
|
|
|
|
- secure: "b9qdjrlr2khvQclMg12Fjg0DF3Chv46SdNRymK7cPukAhIaqaPn8g0FL4K9xW/asXRXdWcd3dYBoarjkqX43mNV9nl5Hl2VwV7T6KeGAxQSRqdYioMugIY0P8xrj4i5dwuvt8aqSlCctSozE1e/th8EWjjy6TWi890MJB//NGRE="
|
|
|
|
|
2013-07-22 13:36:02 +00:00
|
|
|
matrix:
|
2013-08-20 03:41:54 +00:00
|
|
|
- CMAKE_CXX_COMPILER=g++-4.8
|
|
|
|
CMAKE_BUILD_TYPE=TESTCOV
|
|
|
|
TESTCOV_TOOL=gcov-4.8
|
|
|
|
USE_TCMALLOC=TRUE
|
|
|
|
DROPBOX=TRUE
|
|
|
|
TRIGGER_BB=TRUE
|
|
|
|
TRIGGER_OSX=TRUE
|
|
|
|
- CMAKE_CXX_COMPILER=g++-4.8
|
|
|
|
CMAKE_BUILD_TYPE=DOXYGEN
|
|
|
|
BUILD_DOXYGEN=TRUE
|
|
|
|
DROPBOX=TRUE
|
2013-07-22 13:36:02 +00:00
|
|
|
- CMAKE_CXX_COMPILER=clang++-3.3
|
|
|
|
CMAKE_BUILD_TYPE=DEBUG
|
2013-07-23 16:50:42 +00:00
|
|
|
USE_TCMALLOC=TRUE
|
2013-07-22 13:36:02 +00:00
|
|
|
- CMAKE_CXX_COMPILER=g++-4.8
|
|
|
|
CMAKE_BUILD_TYPE=DEBUG
|
2013-07-23 16:50:42 +00:00
|
|
|
USE_TCMALLOC=TRUE
|
2013-07-22 13:36:02 +00:00
|
|
|
- CMAKE_CXX_COMPILER=clang++-3.3
|
|
|
|
CMAKE_BUILD_TYPE=RELEASE
|
2013-07-23 16:50:42 +00:00
|
|
|
USE_TCMALLOC=TRUE
|
2013-07-22 13:36:02 +00:00
|
|
|
- CMAKE_CXX_COMPILER=g++-4.8
|
|
|
|
CMAKE_BUILD_TYPE=RELEASE
|
2013-07-23 16:50:42 +00:00
|
|
|
USE_TCMALLOC=TRUE
|
2013-08-20 03:41:54 +00:00
|
|
|
DROPBOX=TRUE
|
|
|
|
UPLOAD=linux_tcmalloc
|
2013-07-23 16:50:42 +00:00
|
|
|
- CMAKE_CXX_COMPILER=clang++-3.3
|
|
|
|
CMAKE_BUILD_TYPE=DEBUG
|
|
|
|
USE_TCMALLOC=FALSE
|
|
|
|
- CMAKE_CXX_COMPILER=g++-4.8
|
|
|
|
CMAKE_BUILD_TYPE=DEBUG
|
|
|
|
USE_TCMALLOC=FALSE
|
|
|
|
- CMAKE_CXX_COMPILER=clang++-3.3
|
|
|
|
CMAKE_BUILD_TYPE=RELEASE
|
|
|
|
USE_TCMALLOC=FALSE
|
|
|
|
- CMAKE_CXX_COMPILER=g++-4.8
|
|
|
|
CMAKE_BUILD_TYPE=RELEASE
|
|
|
|
USE_TCMALLOC=FALSE
|
2013-08-20 03:41:54 +00:00
|
|
|
DROPBOX=TRUE
|
|
|
|
UPLOAD=linux
|
2013-07-22 13:36:02 +00:00
|
|
|
|
|
|
|
before_script:
|
2013-08-20 03:41:54 +00:00
|
|
|
- if [[ $TRIGGER_BB == TRUE ]]; then
|
|
|
|
git push -q https://soonhok:${BB_TOKEN}@bitbucket.org/soonhok/lean.git +master;
|
|
|
|
fi
|
|
|
|
- if [[ $TRIGGER_OSX == TRUE ]]; then
|
|
|
|
MSG=`git log --pretty=oneline --abbrev-commit -n 1 | cut -d ' ' -f 2-`;
|
|
|
|
cp .travis.yml /tmp/.travis.temp.yml;
|
|
|
|
cp .travis.osx.yml .travis.yml;
|
|
|
|
git config --global user.email "notifications@travis-ci.org";
|
|
|
|
git config --global user.name "Travis CI";
|
|
|
|
git add .travis.yml;
|
|
|
|
git commit -m "$MSG";
|
|
|
|
git push -q https://soonhokong:${GH_TOKEN}@github.com/soonhokong/lean-osx.git +HEAD:master;
|
|
|
|
mv /tmp/.travis.temp.yml .travis.yml;
|
|
|
|
fi
|
2013-07-22 13:36:02 +00:00
|
|
|
|
|
|
|
install:
|
2013-08-08 21:02:09 +00:00
|
|
|
- until sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test; do echo retry; done
|
|
|
|
- until sudo add-apt-repository --yes ppa:h-rayflood/llvm; do echo retry; done
|
|
|
|
- until sudo apt-get -qq update; do echo retry; done
|
|
|
|
- if [[ $USE_TCMALLOC == TRUE ]]; then until sudo add-apt-repository --yes ppa:agent-8131/ppa && sudo apt-get -qq update && sudo apt-get -qq install libgoogle-perftools-dev; do echo retry; done; fi
|
|
|
|
- until sudo apt-get -qq install libgmp-dev libmpfr-dev; do echo retry; done
|
|
|
|
- until sudo apt-get -qq install cmake; do echo retry; done
|
|
|
|
- until sudo apt-get -qq install flex bison++; do echo retry; done
|
|
|
|
- until sudo apt-get -qq install libstdc++-4.8-dev; do echo retry; done
|
|
|
|
- if [[ $CMAKE_CXX_COMPILER == g++-4.8 ]]; then until sudo apt-get -qq install g++-4.8; do echo retry; done fi
|
|
|
|
- if [[ $CMAKE_CXX_COMPILER == clang++-3.3 ]]; then until sudo apt-get -qq install clang-3.3; do echo retry; done fi
|
2013-08-20 03:41:54 +00:00
|
|
|
- if [[ $CMAKE_BUILD_TYPE == TESTCOV ]]; then
|
|
|
|
wget http://downloads.sourceforge.net/ltp/lcov-1.10.tar.gz;
|
|
|
|
tar xvfz lcov-1.10.tar.gz;
|
|
|
|
mkdir ~/bin;
|
|
|
|
cp -v lcov-1.10/bin/{lcov,genpng,gendesc,genhtml,geninfo} ~/bin/;
|
|
|
|
rm -rf lcov-1.10.tar.gz lcov-1.10;
|
|
|
|
fi
|
|
|
|
- if [[ $DROPBOX == TRUE ]]; then
|
|
|
|
sudo apt-get -qq install python python-pip;
|
|
|
|
sudo pip install dropbox;
|
|
|
|
fi
|
|
|
|
- if [[ $BUILD_DOXYGEN == TRUE ]]; then
|
|
|
|
sudo apt-get -qq install doxygen graphviz;
|
|
|
|
fi
|
|
|
|
|
|
|
|
script:
|
|
|
|
- if [[ $CMAKE_BUILD_TYPE == DEBUG || $CMAKE_BUILD_TYPE == RELEASE ]]; then
|
|
|
|
mkdir -p build;
|
|
|
|
cd build;
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} ../src;
|
|
|
|
make && yes "C" | ctest -T test -VV;
|
|
|
|
fi
|
|
|
|
|
|
|
|
after_script:
|
|
|
|
- if [[ $CMAKE_BUILD_TYPE == DEBUG ]] || [[ $CMAKE_BUILD_TYPE == RELEASE ]]; then
|
|
|
|
cd ..;
|
|
|
|
fi
|
|
|
|
- if [[ $BUILD_DOXYGEN == TRUE ]]; then
|
|
|
|
script/doxygen.sh;
|
|
|
|
script/dropbox_upload.py doc /Public/doc ${DROPBOX_KEY};
|
|
|
|
fi
|
|
|
|
- if [[ $CMAKE_BUILD_TYPE == TESTCOV ]]; then
|
|
|
|
script/lcov.sh ${CMAKE_CXX_COMPILER} ${TESTCOV_TOOL};
|
|
|
|
script/dropbox_upload.py build/testcov/lcov /Public/lcov ${DROPBOX_KEY};
|
|
|
|
fi
|
|
|
|
- if [[ $UPLOAD ]]; then
|
|
|
|
UPLOAD_DIR=bin;
|
|
|
|
BINARY=lean_${UPLOAD};
|
|
|
|
mkdir ${UPLOAD_DIR};
|
|
|
|
cp build/shell/lean ${UPLOAD_DIR}/${BINARY};
|
|
|
|
script/dropbox_upload.py ${UPLOAD_DIR} /Public/${UPLOAD_DIR} ${DROPBOX_KEY};
|
|
|
|
fi
|
2013-07-22 13:36:02 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
2013-08-01 20:48:15 +00:00
|
|
|
- leansmt-dev@googlegroups.com
|
2013-07-22 13:36:02 +00:00
|
|
|
on_success: always
|
|
|
|
on_failure: always
|