Skip to content

Commit

Permalink
ci: brew only fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jirikuncar committed Mar 1, 2019
1 parent b30ec47 commit 0ed03ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ jobs:
sudo: true
os: osx
osx_image: xcode10.1
before_install: brew install jq
install: python -m pip install requests
script: make brew-commit-formula brew-build-bottle brew-commit-bottle
script:
- echo PY_BREW_VERSION=$(python setup.py --version)
- make -e PY_BREW_VERSION=$(python setup.py --version) brew-commit-formula brew-build-bottle brew-commit-bottle
deploy:
- provider: releases
api_key:
Expand All @@ -103,6 +106,7 @@ jobs:
skip-cleanup: true
# Set in the settings page of your repository, as a secure variable
github-token: $GITHUB_TOKEN
repo: swissdatasciencecenter/homebrew-renku
target-branch: master
keep-history: true
local-dir: /usr/local/Homebrew/Library/Taps/swissdatasciencecenter/homebrew-renku/
Expand Down
5 changes: 4 additions & 1 deletion brew.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ def find_release(package, releases, dependencies=None):
sys.exit(1)

description = response.json()
version = os.environ.get('PY_BREW_VERSION', get_distribution(NAME).version)
version = os.environ.get('PY_BREW_VERSION')
if version is None:
version = get_distribution(NAME).version

release = find_release(NAME, description['releases'][version])

with open('Pipfile.lock') as f:
Expand Down

0 comments on commit 0ed03ef

Please sign in to comment.