Skip to content

Commit

Permalink
more work trying to get an OSX builder to run
Browse files Browse the repository at this point in the history
None of this will work unless the osx build feature is enabled on travis.
  • Loading branch information
derwolfe committed Dec 31, 2014
1 parent ee81996 commit 9026766
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ os:
- linux

env:
- TOX_ENV=lint
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=pypy
- TOX_ENV=docs
- TOX_ENV=docs-spellcheck
- TOX_ENV=docs-linkcheck
- TOX_ENV=bundle
matrix:
- TOX_ENV=lint
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=pypy
- TOX_ENV=docs
- TOX_ENV=docs-spellcheck
- TOX_ENV=docs-linkcheck
- TOX_ENV=bundle

matrix:
allow_failures:
- env: "TOX_ENV=docs-linkcheck"

exclude:
- os: osx
env: lint
Expand Down
10 changes: 9 additions & 1 deletion .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
set -e
set -x


if [[ "${TOX_ENV}" == "pypy"* ]]; then
sudo add-apt-repository -y ppa:pypy/ppa
sudo apt-get -y update
Expand All @@ -16,6 +17,12 @@ if [[ "${TOX_ENV}" == "pypy"* ]]; then
sudo rm -rf /usr/local/pypy/bin
fi

if [[ "$(uname -s)" == 'Darwin' ]]; then
DARWIN=true
else
DARWIN=false
fi

if [[ "${TOX_ENV}" == "docs-spellcheck" ]]; then
if [[ "$DARWIN" = true ]]; then
brew update
Expand All @@ -32,7 +39,8 @@ if [[ "${TOX_ENV}" == "bundle" ]]; then
brew install python pyenv

# a non-system python must be used for py2app.
pyenv local 2.7.9
pyenv global 2.7.9
pyenv rehash
fi
fi

Expand Down

0 comments on commit 9026766

Please sign in to comment.