Skip to content

Commit

Permalink
[BUILD] - Freeze requirements in dist build
Browse files Browse the repository at this point in the history
  • Loading branch information
amuraru committed May 3, 2019
1 parent 2d485d5 commit 1b63ad7
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
language: python
env:
- BOTO_CONFIG=/dev/null
python:
- '2.7'
install:
- pip install -r requirements.txt
- pip install pipenv
script:
# freeze deps
- |
rm -rf Pipfile* deps &&
pipenv lock --clear --two --requirements 1>deps &&
grep '==' deps | sed "s/;\\sextra.*//" > requirements.txt
# test
- export HOME=`pwd`/tmptests && rm -rf $HOME && export PATH=$HOME/.local/bin:$PATH && nosetests --with-xunit tests/unit
- |
pip install --no-cache-dir -r requirements.txt &&
nosetests --with-xunit tests/unit
# build artifact
- export HOME=`pwd`/build && rm -rf $HOME && python setup.py sdist bdist_wheel
- python setup.py sdist bdist_wheel
- ls -l dist/
# dry run
- |
pip install --no-cache-dir dist/ops*.tar.gz &&
ops --verbose -h
deploy:
provider: releases
Expand Down

0 comments on commit 1b63ad7

Please sign in to comment.