08bafd
commit f6df4da0a66c9fdad6c1b794190431c265931a16
08bafd
Author: Endi S. Dewata <edewata@redhat.com>
08bafd
Date:   Thu May 31 04:34:48 2018 +0200
08bafd
08bafd
    Added .travis.yml
08bafd
    
08bafd
    A Travis CI configuration has been added to build JSS and run a
08bafd
    basic installation test. Additional tests will be added later.
08bafd
08bafd
diff --git a/.travis.yml b/.travis.yml
08bafd
new file mode 100644
08bafd
index 00000000..ae674cc5
08bafd
--- /dev/null
08bafd
+++ b/.travis.yml
08bafd
@@ -0,0 +1,22 @@
08bafd
+# BEGIN COPYRIGHT BLOCK
08bafd
+# (C) 2018 Red Hat, Inc.
08bafd
+# All rights reserved.
08bafd
+# END COPYRIGHT BLOCK
08bafd
+
08bafd
+services:
08bafd
+  - docker
08bafd
+
08bafd
+install:
08bafd
+  - docker pull registry.fedoraproject.org/fedora:28
08bafd
+  - docker run
08bafd
+      --name=container
08bafd
+      --detach
08bafd
+      -i
08bafd
+      -v $(pwd):/root/jss
08bafd
+      registry.fedoraproject.org/fedora:28
08bafd
+  - docker exec container dnf install -y dnf-plugins-core gcc make rpm-build
08bafd
+  - docker exec container dnf builddep -y --spec /root/jss/jss.spec.in
08bafd
+  - docker exec container /root/jss/build.sh --with-timestamp --with-commit-id rpm
08bafd
+
08bafd
+script:
08bafd
+  - docker exec container rpm -Uvh /root/build/jss/RPMS/*