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

PR body:
"""
This patch adds the config file for Travis CI. The config file instructs the
CI to:
* check pep8 errors in PR
* pull in a freeipa builder container image from
  docker.io/martbab/freeipa-fedora-builder
* build RPMs in pulled container

These basic checks should eliminate basic errors that can break the build
itself, it does not run any of our integration/unit tests.
"""

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 807925dc8c276eefb3b57d96ad548575ce746a03 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
* pull in a freeipa builder container image from
  docker.io/martbab/freeipa-fedora-builder
* build RPMs in pulled container

These basic checks should eliminate basic errors that can break the build
itself, 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..0b9f2e3
--- /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/master -U0 | pep8 --diff;
+        fi
+    - >
+        docker run -v $PWD:/freeipa -w /freeipa
+        martbab/freeipa-fedora-builder:master-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