-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added bash script to automate releases
- Loading branch information
1 parent
9343b11
commit 2d1ec24
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,35 @@ | ||
#!/bin/bash | ||
|
||
if [ $# -eq 0 ] | ||
then | ||
echo "No version argument supplied" | ||
exit | ||
fi | ||
|
||
echo Upgrading and uploading fw-heudiconv... | ||
|
||
VERSION=$1 | ||
|
||
echo Building docker image: | ||
echo docker build -t pennbbl/fw-heudiconv:$VERSION . | ||
|
||
docker build -t pennbbl/fw-heudiconv:$VERSION . | ||
|
||
echo Testing local help call... | ||
|
||
fw gear local --help | ||
|
||
retVal=$? | ||
if [ $retVal -ne 0 ]; then | ||
echo "Error with local test" | ||
exit $retVal | ||
fi | ||
|
||
echo Uploading to pip... | ||
|
||
python setup.py sdist | ||
twine upload dist/* | ||
|
||
echo Uploading gear... | ||
|
||
fw gear upload |