Commit 204c1d4a authored by Amber Brown's avatar Amber Brown Committed by GitHub

Merge branch 'master' into intersphinx-fuller-id

parents a0e36dd4 05c5eab2
......@@ -16,3 +16,21 @@ script: tox -e $TOX_ENV
notifications:
email: false
# Do an automatic PyPi release when a tag is created.
# http://docs.travis-ci.com/user/deployment/pypi/
# Make sure builds are triggered for any push so that the tag push will also
# trigger a build.
deploy:
provider: pypi
# twistedchecker-robot is associated with adi.roiban email address from
# Gmail. It uses a random password which was not recorded in plain text.
user: twistedchecker-robot
password:
secure: D8Jlbsm8sN1Nz11SgFI7HRxjx0/gLDl66RB101nrhP4Bs4tzK2s9duu7P6nGRIupX5r5czRpSyhPrPQjci3UhcxZf5OTTCd5pamGBd7dv32Usr2aXWhvIfulX+i7jtbOBiWQT7JhxjSjlvyZLW0kka3eClQaD+D4iI64zaBn7y0=
on:
tags: true
# All branches is still required.
# https://github.com/travis-ci/travis-ci/issues/1675
all_branches: true
condition: "$TOX_ENV = test-py27-codecov-travis"
......@@ -58,3 +58,14 @@ It can link to external API documentation using Sphinx objects inventory using
the following cumulative configuration option::
--intersphinx=http://sphinx-doc.org/objects.inv
Releasing a new package
-----------------------
Releasing a new version is done via Travis-CI.
First commit the version update to master and wait for tests to pass.
Create a tag on local branch and then push it::
git tag 1.2.3
git push --tags
;
; Coverage is always reported at the end of test run.
; There is a dedicated hidden environment for publishing the coverage report
; to the codecov.io service.
;
[tox]
envlist =
test-{py27,pypy,py27-codecov-travis},pyflakes
test-{py27,pypy},pyflakes
[testenv:pyflakes]
......@@ -29,7 +34,9 @@ commands =
test: coverage run --source pydoctor --omit pydoctor/test/* --branch {envdir}/bin/nosetests pydoctor
test: coverage report -m
; Hidden env for pusblishing coverage reports from Travis to codecov.io
codecov-travis: coverage xml -o coverage.xml -i
codecov-travis: codecov
; Custom pyflakes run to exlcude test files.
pyflakes: /bin/sh -c "find pydoctor/ -name \*.py ! -path '*/testpackages/*' | xargs pyflakes"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment