Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,10 @@ dist | |
.pydevproject | ||
.vagrant | ||
.settings | ||
.coverage | ||
.cache/* | ||
|
||
.env | ||
.venv*/* | ||
|
||
prepare_test_env |
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,27 @@ | ||
.PHONY: test version | ||
|
||
prepare_test_env: | ||
pip install -e . | ||
pip install -r requirements-test.txt | ||
docker run -d -p 2222:22 -v `pwd`/examples:/examples -v `pwd`/test/id_rsa.pub:/root/.ssh/authorized_keys docker.io/panubo/sshd | ||
sleep 1 | ||
touch prepare_test_env | ||
|
||
test: prepare_test_env | ||
py.test -s --cov paramiko_expect --cov-report term-missing | ||
|
||
version: | ||
set -x | ||
set -e | ||
|
||
git fetch | ||
git checkout master | ||
git rebase upstream/master | ||
read -p "tag: " TAG | ||
python -c "import packaging.version ; print packaging.version.Version('$TAG')" | ||
sed "s/version=.*,/version='$TAG',/" setup.py -i | ||
git add setup.py | ||
git commit -m "version $TAG" | ||
git tag $TAG | ||
git push upstream master --tags | ||
|