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-09-04 23:17:36 +00:00
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG USE_TCMALLOC=TRUE PUSH_TO_CDASH=TRUE
|
2013-08-19 03:21:25 +00:00
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG USE_TCMALLOC=FALSE
|
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=RELEASE USE_TCMALLOC=TRUE UPLOAD=osx
|
2013-09-06 03:15:34 +00:00
|
|
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=RELEASE USE_TCMALLOC=FALSE UPLOAD=osx_tcmalloc PUSH_TO_CDASH=TRUE
|
2013-08-12 22:34:42 +00:00
|
|
|
|
|
|
|
before_script:
|
2013-08-18 18:22:36 +00:00
|
|
|
- mkdir -p build
|
|
|
|
- cd build
|
2013-08-20 03:41:54 +00:00
|
|
|
- CPLUS_INCLUDE_PATH=/usr/local/include/c++/4.9.0/:/usr/local/include/c++/4.9.0/x86_64-apple-darwin12.4.0:/usr/local/include/c++/4.9.0/bits/
|
2013-08-18 18:22:36 +00:00
|
|
|
- export CPLUS_INCLUDE_PATH
|
2013-09-04 10:41:57 +00:00
|
|
|
- LIBRARY_PATH=/usr/local/lib:/local/lib/gcc/x86_64-apple-darwin12.4.0/4.9.0/
|
2013-08-18 18:22:36 +00:00
|
|
|
- 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-20 03:41:54 +00:00
|
|
|
- cd build
|
2013-09-06 03:15:34 +00:00
|
|
|
- SITE=OSX10.8.2@Travis
|
2013-09-06 03:53:21 +00:00
|
|
|
- GIT_COMMIT=`git log HEAD~ --oneline -n 1 | cut -d ' ' -f 1`
|
2013-09-06 03:15:34 +00:00
|
|
|
- if [[ $CMAKE_BUILD_TYPE == RELEASE ]]; then
|
|
|
|
BUILD_TYPE=Release;
|
|
|
|
else
|
|
|
|
BUILD_TYPE=Debug;
|
|
|
|
fi
|
|
|
|
- BUILD_NAME=${TRAVIS_BRANCH}_${GIT_COMMIT}_g++-4.9.0_${BUILD_TYPE}
|
|
|
|
- CONFIG_FILE=DartConfiguration.tcl
|
2013-09-06 03:53:21 +00:00
|
|
|
- sed -i "" "s/^Site:.*/Site:$SITE/" $CONFIG_FILE
|
|
|
|
- sed -i "" "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE
|
2013-09-04 10:41:57 +00:00
|
|
|
- ctest -D ExperimentalConfigure
|
2013-09-06 03:53:21 +00:00
|
|
|
- sed -i "" "s/^Site:.*/Site:$SITE/" $CONFIG_FILE
|
|
|
|
- sed -i "" "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE
|
2013-09-04 10:41:57 +00:00
|
|
|
- ctest -D ExperimentalBuild -VV
|
2013-09-04 04:55:40 +00:00
|
|
|
- yes "C" | ctest -D ExperimentalTest -VV
|
2013-08-20 03:41:54 +00:00
|
|
|
- cd ..
|
2013-08-19 03:21:25 +00:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- if [[ $UPLOAD ]]; then
|
|
|
|
UPLOAD_DIR=bin;
|
|
|
|
BINARY=lean_${UPLOAD};
|
2013-09-11 00:05:14 +00:00
|
|
|
NOW=`date +"%Y%m%d_%H%M"`;
|
|
|
|
GIT_COMMIT=`git log --oneline -n 1 | cut -d ' ' -f 1`;
|
|
|
|
OS=osx;
|
|
|
|
ARCHIVE_BINARY=${NOW}_${TRAVIS_BRANCH}_${GIT_COMMIT}_${OS}_${CMAKE_CXX_COMPILER}_${BUILD_TYPE};
|
|
|
|
if [[ $USE_TCMALLOC ]]; then
|
|
|
|
ARCHIVE_BINARY=${ARCHIVE_BINARY}_tcmalloc;
|
|
|
|
fi;
|
2013-08-19 03:21:25 +00:00
|
|
|
mkdir ${UPLOAD_DIR};
|
|
|
|
cp build/shell/lean ${UPLOAD_DIR}/${BINARY};
|
2013-09-11 00:05:14 +00:00
|
|
|
cp build/shell/lean ${UPLOAD_DIR}/${ARCHIVE_BINARY};
|
2013-08-19 03:21:25 +00:00
|
|
|
script/dropbox_upload.py ${UPLOAD_DIR} /Public/${UPLOAD_DIR} ${DROPBOX_KEY};
|
|
|
|
fi
|
2013-09-04 18:00:55 +00:00
|
|
|
- cd build
|
|
|
|
- if [[ $MEMCHECK == TRUE ]]; then
|
2013-09-10 20:09:10 +00:00
|
|
|
yes "C" | ctest -D ExperimentalMemCheck -VV;
|
2013-09-04 18:00:55 +00:00
|
|
|
fi
|
|
|
|
- if [[ $PUSH_TO_CDASH == TRUE ]]; then
|
|
|
|
ctest -D ExperimentalSubmit;
|
|
|
|
fi
|
|
|
|
- cd ..
|
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 /;
|
2013-08-26 16:09:08 +00:00
|
|
|
wget http://dl.dropboxusercontent.com/u/203889738/gcc/gcc-4.9.0_OSX.tar.bz2 -O /tmp/gcc-mlion.tar.bz2;
|
|
|
|
sudo tar xfj /tmp/gcc-mlion.tar.bz2;
|
2013-08-19 03:21:25 +00:00
|
|
|
cd -;
|
2013-08-20 03:41:54 +00:00
|
|
|
sudo chown -R `whoami` /usr/local;
|
|
|
|
brew install gmp; brew link --overwrite gmp;
|
|
|
|
brew install mpfr; brew link --overwrite mpfr;
|
2013-08-18 18:22:36 +00:00
|
|
|
fi
|
|
|
|
- brew install cmake ninja
|
2013-09-04 04:55:40 +00:00
|
|
|
- if [[ $MEMCHECK == TRUE ]]; then
|
|
|
|
brew install valgrind;
|
|
|
|
fi
|
2013-08-18 18:22:36 +00:00
|
|
|
- if [[ $USE_TCMALLOC == TRUE ]]; then brew install google-perftools; fi
|
2013-08-20 03:41:54 +00:00
|
|
|
- if [[ $UPLOAD ]]; then
|
|
|
|
brew install python; pip install dropbox;
|
|
|
|
fi
|
2013-08-12 22:34:42 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- leansmt-dev@googlegroups.com
|
|
|
|
on_success: always
|
|
|
|
on_failure: always
|