freeipa/.travis.yml
Jan Cholasta 1077743d90 spec file: do not include BuildRequires for lint by default
Lint is never executed from rpmbuild, so the BuildRequires for lint are
purely informational.

Include them only if %with_lint RPM macro is specified.

Update .travis.yml accordingly.

https://fedorahosted.org/freeipa/ticket/6418

Reviewed-By: Petr Spacek <pspacek@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-10-24 14:11:08 +02:00

17 lines
436 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 && make rpms'