mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
37f3ad8867
This patch adds the config file for Travis CI. The config file instructs the CI to: * check pep8 errors in PR * build RPMs in pulled in Fedora builder container (docker.io/martbab/freeipa-fedora-builder) These basic checks should eliminate basic errors that can break the build itself (formatting errors, Syntax errors/undeclared variables, missing BuildRequires, broken API.txt, etc.). It does not run any of our integration/unit tests. Reviewed-By: Martin Basti <mbasti@redhat.com>
17 lines
419 B
YAML
17 lines
419 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 --spec freeipa.spec.in && make rpms'
|