mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 13:24:39 +08:00
Modify the deployment script a bit more.
This commit is contained in:
21
deploy.sh
21
deploy.sh
@@ -4,14 +4,23 @@
|
|||||||
|
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
cd CORRECT_FOLDER
|
BASE_DIR=$(dirname $(readlink -f "$0"))
|
||||||
|
cd $(BASE_DIR)
|
||||||
|
|
||||||
PROJECT_NAME=parso
|
PROJECT_NAME=parso
|
||||||
PROJECT=git-clone
|
|
||||||
BRANCH=master
|
BRANCH=master
|
||||||
FOLDER=build/$PROJECT
|
BUILD_FOLDER=build
|
||||||
|
FOLDER=$BUILD_FOLDER/$PROJECT_NAME
|
||||||
|
|
||||||
cd $FOLDER
|
# Test first.
|
||||||
|
#tox
|
||||||
|
|
||||||
|
[ -d $BUILD_FOLDER ] || mkdir $BUILD_FOLDER
|
||||||
|
# Remove the previous deployment first.
|
||||||
|
rm -rf $FOLDER
|
||||||
|
# Checkout the right branch
|
||||||
|
cd $BUILD_FOLDER
|
||||||
|
git clone .. $PROJECT_NAME
|
||||||
git checkout $BRANCH
|
git checkout $BRANCH
|
||||||
|
|
||||||
# Create tag
|
# Create tag
|
||||||
@@ -34,3 +43,7 @@ rm -rf dist/
|
|||||||
python setup.py sdist bdist_wheel
|
python setup.py sdist bdist_wheel
|
||||||
# Maybe do a pip install twine before.
|
# Maybe do a pip install twine before.
|
||||||
twine upload dist/*
|
twine upload dist/*
|
||||||
|
|
||||||
|
cd $(BASE_DIR)
|
||||||
|
# Back in the development directory fetch tags.
|
||||||
|
git fetch --tags
|
||||||
|
|||||||
Reference in New Issue
Block a user