running tests before every pip deploy
This commit is contained in:
1 parent
844408c6e3
commit
671ae5bc4a
2 files changed
+17
-8
No files matched your search
+12
-7
@@ -6,13 +6,18 @@ cd ..
|
||||
|
||||
./bin/clean.sh
|
||||
|
||||
python setup.py sdist bdist_wheel
|
||||
|
||||
git add .
|
||||
git commit
|
||||
git push
|
||||
if ./bin/run_tests.sh; then
|
||||
python setup.py sdist bdist_wheel
|
||||
|
||||
git tag $(cat .version)
|
||||
git push -u origin $(cat .version)
|
||||
git add .
|
||||
git commit
|
||||
git push
|
||||
|
||||
twine upload dist/*
|
||||
git tag $(cat .version)
|
||||
git push -u origin $(cat .version)
|
||||
|
||||
twine upload dist/*
|
||||
else
|
||||
echo ">>> Stopped due to test failure!"
|
||||
fi
|
||||
+5
-1
@@ -5,5 +5,9 @@ cd $WK_DIR
|
||||
cd ..
|
||||
|
||||
for filename in ./tests/test*.py; do
|
||||
python $filename
|
||||
if python $filename ; then
|
||||
echo woohoo
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
Reference in new issue
Block a user