freeipa/.travis.yml
Petr Spacek 14c1c8dfd0 Build: add Python lint target
https://fedorahosted.org/freeipa/ticket/6418

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
2016-11-09 13:08:32 +01:00

17 lines
481 B
YAML

services:
- docker
before_install:
- pip install pep8
script:
- >
if [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]];
then
git diff origin/${TRAVIS_BRANCH} -U0 | pep8 --diff;
fi
- >
docker run -v $PWD:/freeipa -w /freeipa
martbab/freeipa-fedora-builder:${TRAVIS_BRANCH}-latest
/bin/bash -c 'dnf builddep -y -D "with_lint 1" --spec freeipa.spec.in && autoreconf -i && ./configure && make lint && make rpms'