Skip to content

Commit 494d8fc

Browse files
committed
Travis CI [changelog skip]
1 parent 12aa51a commit 494d8fc

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: python
2+
python: [2.7, 3.4, 3.5, 3.6]
3+
env:
4+
# Remove following environment variables after nirum-python 0.6.0 is released.
5+
- DEVRUNTIME_REPO=dahlia/nirum-python DEVRUNTIME_REF=transport
6+
install:
7+
- pip install tox-travis
8+
- mkdir "$HOME/bin"
9+
script:
10+
- tox -e devruntime
11+
- tox
12+
- tox -e docs
13+
- '[[ "$TRAVIS_TAG" = "" ]] || [[ "$TRAVIS_TAG" = "$(python setup.py --version)" ]]'
14+
- |
15+
if git show --format=%B --quiet "$TRAVIS_COMMIT_RANGE$TRAVIS_TAG" | grep '\[changelog skip\]' > /dev/null; then
16+
echo "Skip changelog checker..."
17+
elif [[ "$TRAVIS_TAG" != "" ]]; then
18+
! grep -i "to be released" README.rst
19+
else
20+
[[ "$(git diff --name-only "$TRAVIS_COMMIT_RANGE" | grep CHANGES\.rst)" != "" ]]
21+
fi

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ commands =
2929

3030
[testenv:docs]
3131
basepython = python3
32-
deps = docutils
32+
deps =
33+
docutils
34+
Pygments
3335
commands =
3436
rst2html.py --strict CHANGES.rst
3537
rst2html.py --strict README.rst

0 commit comments

Comments
 (0)