Moving ccache directory for macosx wheels

This commit is contained in:
Thomas Ferreira de Lima 2019-04-04 17:57:31 -04:00
parent af1289b79a
commit a40b0cb793
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
1 changed files with 32 additions and 23 deletions

View File

@ -201,7 +201,9 @@ matrix:
- name: "cp27-cp27m-macosx_10_13_x86_64.whl"
os: osx
osx_image: xcode9.4 # macOS 10.13
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -216,7 +218,9 @@ matrix:
- name: "cp27-cp27m-macosx_10_12_x86_64.whl"
os: osx
osx_image: xcode8.3 # macOS 10.12
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -231,7 +235,9 @@ matrix:
- name: "cp27-cp27m-macosx_10_11_x86_64.whl"
os: osx
osx_image: xcode8 # macOS 10.11
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -248,7 +254,9 @@ matrix:
- name: "cp37-cp37m-macosx_10_13_x86_64.whl"
os: osx
osx_image: xcode9.4 # macOS 10.13
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -265,7 +273,9 @@ matrix:
- name: "cp36-cp36m-macosx_10_13_x86_64.whl"
os: osx
osx_image: xcode9.4 # macOS 10.13
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -280,7 +290,9 @@ matrix:
- name: "cp35-cp35m-macosx_10_13_x86_64.whl"
os: osx
osx_image: xcode9.4 # macOS 10.13
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -290,27 +302,14 @@ matrix:
- ARCHFLAGS="-std=c++11"
- PIP_UPDATE="1"
- PYTHON_BUILD=true
# # - name: "klayout python3.4.9 osx10.13"
# - name: "cp34-cp34m-macosx_10_13_x86_64.whl"
# os: osx
# osx_image: xcode9.4 # macOS 10.13
# cache: ccache
# addons:
# homebrew:
# packages:
# - ccache
# env:
# - MATRIX_EVAL="brew update; brew tap sashkab/python; brew install sashkab/python/python34; brew link --force --overwrite python34; shopt -s expand_aliases; alias python='/usr/local/opt/python34/bin/python3.4'; alias pip='/usr/local/opt/python34/bin/pip3.4';"
# - ARCHFLAGS="-std=c++11"
# - PIP_UPDATE="1"
# - PYTHON_BUILD=true
# - name: "klayout python3 osx10.12"
- name: "cp37-cp37m-macosx_10_12_x86_64.whl"
os: osx
osx_image: xcode8.3 # macOS 10.12
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -327,7 +326,9 @@ matrix:
- name: "cp37-cp37m-macosx_10_11_x86_64.whl"
os: osx
osx_image: xcode8 # macOS 10.11
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -462,6 +463,9 @@ before_install:
- python -c "import distutils.sysconfig as sysconfig; print(sysconfig.__file__)"
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
export PATH="/usr/local/opt/ccache/libexec:$PATH";
mkdir -p ccache;
export CCACHE_DIR="`pwd`/ccache";
ccache -s;
fi
install:
@ -506,6 +510,11 @@ script:
./travis-build.sh;
fi
before_cache:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
ccache -s;
fi
after_success:
# upload to dropbox
# need DROPBOX_OAUTH_BEARER environment variable