[commit: ghc] wip/jenkins: Add nofib, bindist, and aarch64 support (a2a6fb8)

git at git.haskell.org git at git.haskell.org
Thu May 18 02:47:36 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/jenkins
Link       : http://ghc.haskell.org/trac/ghc/changeset/a2a6fb8de85434a32f1286a17fa013b525780634/ghc

>---------------------------------------------------------------

commit a2a6fb8de85434a32f1286a17fa013b525780634
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed May 17 22:41:02 2017 -0400

    Add nofib, bindist, and aarch64 support


>---------------------------------------------------------------

a2a6fb8de85434a32f1286a17fa013b525780634
 Jenkinsfile | 31 +++++++++++++++++++++++++------
 1 file changed, 25 insertions(+), 6 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index ee92071..20da5c2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -5,11 +5,13 @@ properties(
     parameters(
       [
         booleanParam(name: 'build_docs', defaultValue: false, description: 'build and upload documentation'),
-        booleanParam(name: 'nightly', defaultValue: false, description: 'are we building a nightly?')
+        booleanParam(name: 'nightly', defaultValue: false, description: 'are we building a nightly?'),
+        booleanParam(name: 'buildBindist', defaultValue: false, description: 'prepare and archive a binary distribution?'),
+        booleanParam(name: 'runNofib', defaultValue: false, description: 'run nofib and archive results')
       ])
   ])
 
-def buildGhc() {
+def buildGhc(boolean runNofib=false) {
   stage('Build') {
     sh 'git submodule update --init --recursive'
     def speed = 'NORMAL'
@@ -40,15 +42,32 @@ def buildGhc() {
     }
   }
 
-  stage('Normal testsuite run') {
+  stage('Run testsuite') {
     def target = 'test'
     if (params.nightly) {
       target = 'slowtest'
     }
     sh "make THREADS=${env.THREADS} ${target}"
   }
-}
 
-node {
-  buildGhc()
+  stage('Run nofib') {
+    if (runNofib) {
+      sh """
+         cd nofib
+         make boot
+         make >../nofib.log 2>&1
+         """
+      archive 'nofib.log'
+    }
+  }
+
+  stage('Prepare bindist') {
+    if (params.buildBindist) {
+      sh "make binary-dist"
+      archive 'ghc-*.tar.xz'
+    }
+  }
 }
+
+node { buildGhc(runNofib: params.runNofib) }
+///node(label: 'aarch64') { buildGhc() }



More information about the ghc-commits mailing list