Update .travis.osx.yml to use precompiled gcc/mpfr/gmp, and copy precompiled lean binaries to dropbox
This commit is contained in:
parent
db8322e6e8
commit
f9cbdb5456
2 changed files with 23 additions and 16 deletions
|
@ -5,10 +5,10 @@ env:
|
||||||
matrix:
|
matrix:
|
||||||
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG USE_TCMALLOC=FALSE LCOV=TRUE
|
- 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=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=TRUE
|
||||||
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG USE_TCMALLOC=FALSE NORMAL=TRUE
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG USE_TCMALLOC=FALSE
|
||||||
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=RELEASE USE_TCMALLOC=TRUE NORMAL=TRUE
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=RELEASE USE_TCMALLOC=TRUE UPLOAD=osx
|
||||||
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=RELEASE USE_TCMALLOC=FALSE NORMAL=TRUE
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=RELEASE USE_TCMALLOC=FALSE UPLOAD=osx_tcmalloc
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
|
@ -21,13 +21,15 @@ before_script:
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- if [[ $NORMAL == TRUE ]]; then
|
- if [[ -z $LCOV && -z $DOXYGEN ]]; then
|
||||||
cd build;
|
cd build;
|
||||||
ninja && yes "C" | ctest -T test -VV;
|
ninja && yes "C" | ctest -T test -VV;
|
||||||
cd ..;
|
cd ..;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
after_script:
|
||||||
- if [[ $DOXYGEN == TRUE ]]; then
|
- if [[ $DOXYGEN == TRUE ]]; then
|
||||||
brew install doxygen;
|
brew install doxygen graphviz;
|
||||||
script/doxygen.sh;
|
script/doxygen.sh;
|
||||||
brew install python;
|
brew install python;
|
||||||
pip install dropbox;
|
pip install dropbox;
|
||||||
|
@ -40,19 +42,24 @@ script:
|
||||||
pip install dropbox;
|
pip install dropbox;
|
||||||
script/dropbox_upload.py build/testcov/lcov /Public/lcov ${DROPBOX_KEY};
|
script/dropbox_upload.py build/testcov/lcov /Public/lcov ${DROPBOX_KEY};
|
||||||
fi
|
fi
|
||||||
|
- if [[ $UPLOAD ]]; then
|
||||||
|
UPLOAD_DIR=bin;
|
||||||
|
BINARY=lean_${UPLOAD};
|
||||||
|
mkdir ${UPLOAD_DIR};
|
||||||
|
cp build/shell/lean ${UPLOAD_DIR}/${BINARY};
|
||||||
|
brew install python; pip install dropbox;
|
||||||
|
script/dropbox_upload.py ${UPLOAD_DIR} /Public/${UPLOAD_DIR} ${DROPBOX_KEY};
|
||||||
|
fi
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [[ $CMAKE_CXX_COMPILER == g++ ]]; then
|
- if [[ $CMAKE_CXX_COMPILER == g++ ]]; then
|
||||||
cd /;
|
cd /;
|
||||||
wget http://prdownloads.sourceforge.net/hpc/gcc-mlion.tar.gz?download -O /tmp/gcc-mlion.tar.gz;
|
wget https://dl.dropboxusercontent.com/u/203889738/gcc/gcc-4.8.1_gmp-5.1.2_mpfr-3.1.2.tar.gz -O /tmp/gcc-mlion.tar.gz;
|
||||||
sudo tar xvfz /tmp/gcc-mlion.tar.gz; cd -;
|
sudo tar xvfz /tmp/gcc-mlion.tar.gz;
|
||||||
|
cd -;
|
||||||
fi
|
fi
|
||||||
- sudo chown -R `whoami` /usr/local
|
- sudo chown -R `whoami` /usr/local
|
||||||
- brew install cmake ninja
|
- 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
|
- if [[ $USE_TCMALLOC == TRUE ]]; then brew install google-perftools; fi
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
|
|
@ -20,7 +20,7 @@ def copy_file_with_retry(fullpath, targetpath, max_try):
|
||||||
print("==> " + targetpath)
|
print("==> " + targetpath)
|
||||||
try:
|
try:
|
||||||
handle = open(fullpath)
|
handle = open(fullpath)
|
||||||
response = client.put_file(targetpath, handle)
|
response = client.put_file(targetpath, handle, True)
|
||||||
except:
|
except:
|
||||||
handle.close()
|
handle.close()
|
||||||
print("FAILED: " + targetpath)
|
print("FAILED: " + targetpath)
|
||||||
|
@ -47,5 +47,5 @@ def remove_dir_from_dropbox(serverDir):
|
||||||
print (serverDir + " not exists")
|
print (serverDir + " not exists")
|
||||||
|
|
||||||
print ("Copy: " + local_path + " ==> " + server_path)
|
print ("Copy: " + local_path + " ==> " + server_path)
|
||||||
remove_dir_from_dropbox(server_path)
|
#remove_dir_from_dropbox(server_path)
|
||||||
upload_dir_to_dropbox(local_path, server_path)
|
upload_dir_to_dropbox(local_path, server_path)
|
||||||
|
|
Loading…
Add table
Reference in a new issue