martbab's pull request #61: "Use Travis-CI for basic sanity checks" was 
synchronize

See the full pull-request at https://github.com/freeipa/freeipa/pull/61
... or pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/61/head:pr61
git checkout pr61
From 08e345b4b93fd982d54b1e47d8390e54ef7a87c9 Mon Sep 17 00:00:00 2001
From: Martin Babinsky <mbabi...@redhat.com>
Date: Mon, 5 Sep 2016 10:19:40 +0200
Subject: [PATCH] Use Travis-CI for basic sanity checks

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.
---
 .travis.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..f221e82
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,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 --spec freeipa.spec.in && make rpms'
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to