TRex: add playground jobs to check build of TRex/docs 80/2580/2
authorYaroslav Brustinov <ybrustin@cisco.com>
Wed, 31 Aug 2016 22:16:22 +0000 (01:16 +0300)
committerYaroslav Brustinov <ybrustin@cisco.com>
Wed, 31 Aug 2016 22:22:18 +0000 (01:22 +0300)
Change-Id: I606f0dadbbce8b69182adeb5af1b4af08147ed94
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
jjb/trex/include-raw-trex-build.sh [new file with mode: 0644]
jjb/trex/trex.yaml [new file with mode: 0644]

diff --git a/jjb/trex/include-raw-trex-build.sh b/jjb/trex/include-raw-trex-build.sh
new file mode 100644 (file)
index 0000000..24049ac
--- /dev/null
@@ -0,0 +1,53 @@
+#!/bin/bash -ex
+
+# emulate unique name for now
+GERRIT_NEWREV=hash`date +%s%N`
+WS=${PWD}/$GERRIT_NEWREV
+
+#  temporary don't fail
+set +e
+
+function clean_ws {
+    rm -rf "$WS"
+}
+trap clean_ws EXIT
+
+echo "$WS"
+clean_ws
+mkdir "$WS"
+cd "$WS"
+
+# cloning
+
+git clone https://github.com/cisco-system-traffic-generator/trex-core.git
+git clone https://github.com/cisco-system-traffic-generator/trex-doc.git
+ls -l
+
+# building core
+
+cd trex-core/linux_dpdk
+./b configure
+./b build
+cd -
+
+cd trex-core/linux
+./b configure
+./b build
+cd -
+
+which asciidoc
+which sphinx-build
+which dblatex
+which python
+which python3
+which pip
+
+# building docs
+
+cd trex-doc
+./b configure
+./b build
+cd -
+
+echo Done
+
diff --git a/jjb/trex/trex.yaml b/jjb/trex/trex.yaml
new file mode 100644 (file)
index 0000000..20697d7
--- /dev/null
@@ -0,0 +1,50 @@
+- project:
+    name: trex
+    jobs:
+        - 'trex-verify-{stream}-{os}'
+
+    project: 'trex'
+    os:
+        - ubuntu1404
+        - ubuntu1604
+        - centos7
+
+    stream:
+        - master:
+            branch: 'master'
+
+
+- job-template:
+    name: 'trex-verify-{stream}-{os}'
+
+    project-type: freestyle
+    node: 'verify-{os}'
+    concurrent: true
+
+    logrotate:
+      artifactDaysToKeep: '-1'
+      artifactNumToKeep: '-1'
+      daysToKeep: '30'
+      numToKeep: '100'
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+        - gerrit-parameter:
+            branch: '{branch}'
+        - os-parameter:
+            os: '{os}'
+
+    triggers:
+        - timed: H */6 * * *
+
+    builders:
+        - shell:
+            !include-raw-escape: include-raw-trex-build.sh
+
+    description: "!!! Playground to verify that TRex and docs can be built. !!!\r\n\
+        \r\n\
+        TODO:\r\n\
+        1) merge doc and core repos\r\n\
+        2) replace pull from github by fd.io gerrit with triggering\r\n\
+        3) add a real regression\r\n\r\n"