-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: pulp_file-client not being published to PyPI
Solution: configure Travis to publish pulp_file-client to PyPI This also limits how frequently the pulp_file_client Ruby Gem is published. re: #4694 https://pulp.plan.io/issues/4694
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
pip install twine | ||
|
||
django-admin runserver 24817 >> ~/django_runserver.log 2>&1 & | ||
sleep 5 | ||
|
||
cd /home/travis/build/pulp/pulp_file/ | ||
export REPORTED_VERSION=$(http :24817/pulp/api/v3/status/ | jq --arg plugin pulp_file -r '.versions[] | select(.component == $plugin) | .version') | ||
export COMMIT_COUNT="$(git rev-list ${REPORTED_VERSION}^..HEAD | wc -l)" | ||
export VERSION=${REPORTED_VERSION}.dev.${COMMIT_COUNT} | ||
|
||
cd | ||
git clone https://github.com/pulp/pulp-swagger-codegen.git | ||
cd pulp-swagger-codegen | ||
|
||
sudo ./generate.sh pulp_file python $VERSION | ||
sudo chown -R travis:travis pulp_file-client | ||
cd pulp_file-client | ||
python setup.py sdist bdist_wheel --python-tag py3 | ||
twine upload dist/* -u pulp -p $PYPI_PASSWORD | ||
exit $? |