PTU5KAS/.travis.yml
Claudius Heine e02bee0eec Added initial sphinx documentation
This commit adds initial files for the Sphinx documentation system and
expanded checkcode.sh to include `doc8` as documentation checker. Also
added this checker to the dependencies for travis CI.

Signed-off-by: Claudius Heine <ch@denx.de>
2017-06-28 15:12:15 +02:00

33 lines
850 B
YAML

language: python
python:
- "3.4"
- "3.5"
- "3.6"
sudo: required
services:
- docker
install:
# install kas to have all kas dependencies:
- pip install .
# checkcode dependencies:
- pip install pylint pep8 doc8 Pygments
script:
- scripts/checkcode.sh .
- docker build -t kasproject/kas .
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "next" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push kasproject/kas;
if [ "$TRAVIS_BRANCH" == "master" ] && git describe --exact-match 2>/dev/null >/dev/null; then
VERSION="$(/usr/bin/python3 -c 'from kas.__version__ import __version__; print(__version__)')";
docker tag kasproject/kas kasproject/kas:$VERSION;
docker push kasproject/kas:$VERSION;
fi
fi