Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #202 from cfpb/travis-build-my-wheel
Browse files Browse the repository at this point in the history
Allow Travis to build wheels and attach them to releases
  • Loading branch information
rosskarchner committed Sep 19, 2017
2 parents cf01aa0 + ca30337 commit 7a432ac
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
31 changes: 23 additions & 8 deletions .travis.yml
@@ -1,14 +1,29 @@
language: python
python:
- "2.7"
- '2.7'
nodejs: 6
cache: pip
env: DJ_KEY=testkey
install:
- pip install -r requirements.txt
- pip install coveralls
script:
- cp test_settings.py settings.py
- ./manage.py migrate
- coverage run --source='.' manage.py test
- pip install -r requirements.txt
- pip install coveralls
before_script:
- npm install -g bower gulp-cli
- bower install
script:
- cp test_settings.py settings.py
- ./manage.py migrate
- coverage run --source='.' manage.py test
- python2.7 setup.py bdist_wheel
- ls dist/*
after_success:
- coveralls
- coveralls
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: e24xlCO9zGNwFqicknFg/HAqui5duz2aQM2ruPFDpPbmw4rMD9ABYMq9DUqu/o4bXQMtCqH32fgaKnz6j4LYoMHEedPYpPuluszqXj2coHUoE+p93w/AYrGFiGfMukUtcW8xBxJnLJi4HOovKdSKqaravb7BCCtc/OjfcrPOn+g=
file_glob: true
file: 'dist/*.whl'
on:
tags: true
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -14,9 +14,9 @@ def read_file(filename):

setup(
name='retirement',
version='0.5.6',
author='CFPB',
author_email='tech@cfpb.gov',
version_format='{tag}.dev{commitcount}+{gitsha}',
maintainer='cfpb',
maintainer_email='tech@cfpb.gov',
packages=['retirement_api', 'retirement_api.utils'],
Expand All @@ -34,7 +34,7 @@ def read_file(filename):
],
long_description=read_file('README.md'),
zip_safe=False,
setup_requires=['cfgov-setup==1.2', ],
setup_requires=['cfgov-setup==1.2', 'setuptools-git-version==1.0.3'],
frontend_build_script='frontendbuild.sh',

)

0 comments on commit 7a432ac

Please sign in to comment.