Skip to content

Commit

Permalink
#14: Add script to release the library.
Browse files Browse the repository at this point in the history
  • Loading branch information
annoviko committed Oct 7, 2021
1 parent ea9a250 commit 2d3ab7f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ HttpCtrl library for Robot Framework
**RobotFramework-HttpCtrl** is a library for Robot Framework that provides HTTP/HTTPS client and HTTP server (IPv4 and IPv6) services
to make REST API testing easy.

.. include:: VERSION

**Author**: Andrei Novikov

**License**: The 3-Clause BSD License
Expand Down
File renamed without changes.
37 changes: 37 additions & 0 deletions ci/github-ci-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
PATH_ROOT=`readlink -f ..`
PATH_REPO_CURRENT=`readlink -f .`
PATH_SOURCE=`readlink -f src`


# packages to generate documentation
echo "Install packages for release."
pip3 install docutils pygments twine

# Release to PyPi
python3 setup.py sdist
twine upload dist/* -r testpypi

# Create folder for the documentation
mkdir $PATH_ROOT/httpctrl-gh-pages
cd $PATH_ROOT/httpctrl-gh-pages

git clone https://github.com/annoviko/robotframework-httpctrl.git .
git checkout hg-pages

PATH_REPO_GH_PAGES=`readlink -f .`

# Generate documentation
cd $PATH_REPO_CURRENT
version=`cat config.txt`

cd $PATH_SOURCE

python3 -m robot.libdoc -v $version -F reST HttpCtrl.Client $PATH_REPO_GH_PAGES/client.html
python3 -m robot.libdoc -v $version -F reST HttpCtrl.Server $PATH_REPO_GH_PAGES/server.html
python3 -m robot.libdoc -v $version -F reST HttpCtrl.Json $PATH_REPO_GH_PAGES/json.html

# Commit and push documentation changes
cd $PATH_REPO_GH_PAGES

git push https://$HTTPCTRL_USERNAME:$HTTPCTRL_PASSWORD@github.com/annoviko/robotframework-httpctrl.git --all

0 comments on commit 2d3ab7f

Please sign in to comment.