Skip to content

Commit

Permalink
Merge 97bc3e3 into 57f784a
Browse files Browse the repository at this point in the history
  • Loading branch information
fruch committed Sep 30, 2017
2 parents 57f784a + 97bc3e3 commit 020c77d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Expand Up @@ -6,3 +6,10 @@ dist
.pydevproject
.vagrant
.settings
.coverage
.cache/*

.env
.venv*/*

prepare_test_env
27 changes: 27 additions & 0 deletions Makefile
@@ -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

0 comments on commit 020c77d

Please sign in to comment.