2013-08-12 22:34:42 +00:00
|
|
|
language: objective-c
|
|
|
|
env:
|
2013-08-18 18:22:36 +00:00
|
|
|
global:
|
|
|
|
- secure: "W8vou0KRJOOboZXP9q+D/9Wl6LlBeVS2T85MHWPz7EwCMQbJq5xWnGzYLE6FmC0iILcZkXyP63vqoYMFo5MJaEQeALGx2RuIiW7XgrD+7Bn4Vfsp6BLT7K9/AJETGGTQnLs8oZJJCXHGtzbc8EPFIZd/ZPPrve4jhEE5ZNhXnRc="
|
2013-08-12 22:34:42 +00:00
|
|
|
matrix:
|
2013-08-18 18:22:36 +00:00
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG USE_TCMALLOC=FALSE LCOV=TRUE
|
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG USE_TCMALLOC=FALSE DOXYGEN=TRUE
|
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG USE_TCMALLOC=TRUE NORMAL=TRUE
|
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG USE_TCMALLOC=FALSE NORMAL=TRUE
|
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=RELEASE USE_TCMALLOC=TRUE NORMAL=TRUE
|
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=RELEASE USE_TCMALLOC=FALSE NORMAL=TRUE
|
2013-08-12 22:34:42 +00:00
|
|
|
|
|
|
|
before_script:
|
2013-08-18 18:22:36 +00:00
|
|
|
- mkdir -p build
|
|
|
|
- cd build
|
|
|
|
- CPLUS_INCLUDE_PATH=/usr/local/include/c++/4.8.1/:/usr/local/include/c++/4.8.1/x86_64-apple-darwin12.4.0:/usr/local/include/c++/4.8.1/bits/
|
|
|
|
- export CPLUS_INCLUDE_PATH
|
|
|
|
- LIBRARY_PATH=/usr/local/lib
|
|
|
|
- export LIBRARY_PATH
|
|
|
|
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_CXX_COMPILER=/usr/local/bin/${CMAKE_CXX_COMPILER} ../src -G Ninja
|
|
|
|
- cd ..
|
2013-08-12 22:34:42 +00:00
|
|
|
|
|
|
|
script:
|
2013-08-18 18:22:36 +00:00
|
|
|
- if [[ $NORMAL == TRUE ]]; then
|
|
|
|
cd build;
|
|
|
|
ninja && yes "C" | ctest -T test -VV;
|
|
|
|
cd ..;
|
|
|
|
fi
|
|
|
|
- if [[ $DOXYGEN == TRUE ]]; then
|
|
|
|
brew install doxygen;
|
|
|
|
script/doxygen.sh;
|
|
|
|
brew install python;
|
|
|
|
pip install dropbox;
|
|
|
|
script/dropbox_upload.py doc /Public/doc ${DROPBOX_KEY};
|
|
|
|
fi
|
|
|
|
- if [[ $LCOV == TRUE ]]; then
|
|
|
|
brew install lcov;
|
|
|
|
script/lcov.sh;
|
|
|
|
brew install python;
|
|
|
|
pip install dropbox;
|
|
|
|
script/dropbox_upload.py build/testcov/lcov /Public/lcov ${DROPBOX_KEY};
|
|
|
|
fi
|
2013-08-12 22:34:42 +00:00
|
|
|
|
|
|
|
install:
|
2013-08-18 18:22:36 +00:00
|
|
|
- if [[ $CMAKE_CXX_COMPILER == g++ ]]; then
|
2013-08-12 22:34:42 +00:00
|
|
|
cd /;
|
|
|
|
wget http://prdownloads.sourceforge.net/hpc/gcc-mlion.tar.gz?download -O /tmp/gcc-mlion.tar.gz;
|
2013-08-18 18:22:36 +00:00
|
|
|
sudo tar xvfz /tmp/gcc-mlion.tar.gz; cd -;
|
|
|
|
fi
|
|
|
|
- sudo chown -R `whoami` /usr/local
|
|
|
|
- brew install cmake ninja
|
|
|
|
- brew install gmp
|
|
|
|
- brew link --overwrite gmp
|
|
|
|
- brew install mpfr
|
|
|
|
- brew link --overwrite mpfr
|
|
|
|
- if [[ $USE_TCMALLOC == TRUE ]]; then brew install google-perftools; fi
|
2013-08-12 22:34:42 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- leansmt-dev@googlegroups.com
|
|
|
|
on_success: always
|
|
|
|
on_failure: always
|