]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-docker-nightly: initial pass on a nightly test run for ceph-docker 589/head
authorAlfredo Deza <adeza@redhat.com>
Fri, 9 Dec 2016 21:15:49 +0000 (16:15 -0500)
committerAlfredo Deza <adeza@redhat.com>
Fri, 9 Dec 2016 21:19:04 +0000 (16:19 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-docker-nightly/build/build [new file with mode: 0644]
ceph-docker-nightly/config/definitions/ceph-docker-nightly.yml [new file with mode: 0644]

diff --git a/ceph-docker-nightly/build/build b/ceph-docker-nightly/build/build
new file mode 100644 (file)
index 0000000..e00014d
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "pytest" )
+install_python_packages "pkgs[@]"
+
+sudo apt-get install docker.io
+
+sudo gpasswd -a ${USER} docker
+sudo systemctl restart docker
+newgrp docker
+
+cd tests
+py.test -v
diff --git a/ceph-docker-nightly/config/definitions/ceph-docker-nightly.yml b/ceph-docker-nightly/config/definitions/ceph-docker-nightly.yml
new file mode 100644 (file)
index 0000000..617ccb8
--- /dev/null
@@ -0,0 +1,35 @@
+- job:
+    name: ceph-docker-nightly
+    node: small && trusty
+    project-type: freestyle
+    defaults: global
+    display-name: 'ceph-docker: Nightly tests for released containers'
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    retry-count: 3
+    properties:
+      - github:
+          url: https://github.com/ceph/ceph-docker
+    logrotate:
+      daysToKeep: -1
+      numToKeep: -1
+      artifactDaysToKeep: -1
+      artifactNumToKeep: -1
+
+    triggers:
+      - timed: '@daily'
+
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph-docker.git
+          branches:
+            - master
+          browser: auto
+          timeout: 20
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build