[commit: ghc] wip/jenkins: Build from source distribution (ced26f5)

git at git.haskell.org git at git.haskell.org
Mon May 29 18:12:34 UTC 2017


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

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

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

commit ced26f56fe8bf35ed475a31300e8e20776a43672
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon May 29 13:55:58 2017 -0400

    Build from source distribution


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

ced26f56fe8bf35ed475a31300e8e20776a43672
 Jenkinsfile | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 60d0b9d..3e79e22 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,6 +11,15 @@ properties(
       ])
   ])
 
+
+stage("Build source distribution") {
+  checkout csm
+  sh "git submodule update --init --recursive"
+  sh "make sdist"
+  sh "mv ghc-*.tar.xz" "ghc-src.tar.xz"
+  stash(name: 'source-dist', includes: 'ghc-src.tar.xz')
+}
+
 parallel (
   "linux x86-64"       : {
     node(label: 'linux && amd64') {buildGhc(runNoFib: params.runNofib)}
@@ -56,8 +65,9 @@ def buildGhc(params) {
   boolean unreg = params?.unreg ?: false
 
   stage('Checkout') {
-    checkout scm
-    sh "git submodule update --init --recursive"
+    unstash(name: "source-dist")
+    sh 'tar -xf ghc-src.tar.xz'
+    dir 'ghc-*'
   }
 
   stage('Configure') {



More information about the ghc-commits mailing list