From 734fe59663a5a05c87e11deec02f0a429bb79409 Mon Sep 17 00:00:00 2001 From: Pedro Ferreira Date: Fri, 14 Jun 2019 21:43:33 +0200 Subject: [PATCH] Improve OSX config --- .travis.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index d180a52..18c23d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,16 +13,24 @@ matrix: - os: linux python: 3.8-dev dist: xenial + # shamelessly stolen from https://github.com/pyload/pyload - os: osx language: sh + env: + - HOMEBREW_NO_INSTALL_CLEANUP=1 + - HOMEBREW_NO_ANALYTICS=1 + before_cache: + - rm -f "$HOME/Library/Caches/pip/log/debug.log" + cache: + directories: + - "$HOME/Library/Caches/pip" + addons: + homebrew: + packages: python3 before_install: - - brew update - - brew info python@3 - - brew upgrade python@3 - install: - - pip3 install .[tests] - - pip3 install coveralls - + - python3 -m pip install --upgrade virtualenv + - virtualenv -p python3 --system-site-packages "$HOME/venv" + - source "$HOME/venv/bin/activate" install: - pip install .[tests] - pip install coveralls