summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 44a2ee6846b1cb2a559f1a8055ce4bfca4738654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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'