[commit: ghc] wip/jenkins: Run jobs in parallel (cb55baa)

git at git.haskell.org git at git.haskell.org
Thu May 18 03:39:19 UTC 2017


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

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

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

commit cb55baa12ba7c4b96f8a96c20787de7c8d9519f2
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed May 17 23:34:37 2017 -0400

    Run jobs in parallel


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

cb55baa12ba7c4b96f8a96c20787de7c8d9519f2
 Jenkinsfile | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index eada3d5..b534ce3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,19 +11,24 @@ properties(
       ])
   ])
 
-//node { buildGhc(runNofib: params.runNofib) }
-node(label: 'linux && amd64') {
-  buildGhc(false)
-}
-node(label: 'aarch64') {
-  buildGhc(false)
-}
+parallel
+  (
+    "linux x86-64" : {node(label: 'linux && amd64') {buildGhc(params.runNofib)}},
+    "aarch64"      : {node(label: 'aarch64') {buildGhc(false)}},
+    "osx"          : {node(label: 'darwin') {buildGhc(false)}}
+  )
 
-def installPackages(pkgs) {
+def installPackages(String[] pkgs) {
   sh "cabal install -j${env.THREADS} --with-compiler=`pwd`/inplace/bin/ghc-stage2 --package-db=`pwd`/inplace/lib/package.conf.d ${pkgs.join(' ')}"
 }
 
-def buildGhc(runNofib) {
+def buildGhc(boolean runNofib) {
+  stage('Clean') {
+    if (false) {
+      sh 'make distclean'
+    }
+  }
+
   stage('Build') {
     sh 'git submodule update --init --recursive'
     def speed = 'NORMAL'



More information about the ghc-commits mailing list