2013-08-22 19:12:50 +00:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# DROPBOX_KEY
|
|
|
|
- secure: "H1aUwvee839ZPVievqm8Fwl9hBHx5/JW6+J66+ORYL2IHHPjfOgLKRYU2rcTcbxnZO88NJRGeiI431rEadBU2Ie5aS8WpKM5orvRmdd6bLcCvzqN+hS8JCmCVygQtgpKYYUk8iDWhX9YCgPVs0RlRz3UCjwUpqdkmL+w74lIZMM="
|
|
|
|
matrix:
|
2013-09-04 04:55:40 +00:00
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=RELEASE UPLOAD=windows DROPBOX=TRUE PUSH_TO_CDASH=TRUE
|
2013-08-22 19:12:50 +00:00
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG
|
|
|
|
|
|
|
|
install:
|
2013-08-22 23:48:05 +00:00
|
|
|
- sudo add-apt-repository --yes ppa:purplekarrot/cmake
|
|
|
|
- sudo apt-get -qq update
|
2013-08-22 19:12:50 +00:00
|
|
|
- sudo apt-get -qq install cmake make
|
|
|
|
- if [[ $DROPBOX == TRUE ]]; then
|
|
|
|
sudo apt-get -qq install python python-pip;
|
|
|
|
sudo pip install dropbox;
|
|
|
|
fi
|
2013-08-22 23:48:05 +00:00
|
|
|
- mkdir -p /tmp/mxe
|
|
|
|
- cd /tmp/mxe
|
|
|
|
- wget http://dl.dropboxusercontent.com/u/203889738/gcc/mxe-gcc-4.8.1.tar.bz2
|
|
|
|
- tar xfj mxe-gcc-4.8.1.tar.bz2
|
|
|
|
- cd -
|
2013-08-22 19:12:50 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- mkdir -p build
|
2013-08-22 23:48:05 +00:00
|
|
|
- LEAN_ROOT=`pwd`
|
2013-08-22 19:12:50 +00:00
|
|
|
- cd build
|
2013-08-22 23:48:05 +00:00
|
|
|
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ../src -DCMAKE_TOOLCHAIN_FILE=/tmp/mxe/usr/x86_64-w64-mingw32/share/cmake/mxe-conf.cmake
|
2013-09-04 04:55:40 +00:00
|
|
|
- ctest -D ExperimentalBuild
|
|
|
|
- if [[ $PUSH_TO_CDASH == TRUE ]]; then
|
|
|
|
ctest -D ExperimentalSubmit;
|
|
|
|
fi
|
2013-08-22 23:48:05 +00:00
|
|
|
- cd ..
|
2013-08-22 19:12:50 +00:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- if [[ $UPLOAD ]]; then
|
|
|
|
UPLOAD_DIR=bin;
|
|
|
|
BINARY=lean_${UPLOAD}.exe;
|
|
|
|
mkdir ${UPLOAD_DIR};
|
|
|
|
cp build/shell/lean.exe ${UPLOAD_DIR}/${BINARY};
|
|
|
|
script/dropbox_upload.py ${UPLOAD_DIR} /Public/${UPLOAD_DIR} ${DROPBOX_KEY};
|
|
|
|
fi
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
2013-08-22 23:48:05 +00:00
|
|
|
- leansmt-dev@googlegroups.com
|
2013-08-22 19:12:50 +00:00
|
|
|
on_success: always
|
|
|
|
on_failure: always
|