[commit: ghc] wip/jenkins: Build from source distribution (d1306ae)
git at git.haskell.org
git at git.haskell.org
Mon May 29 18:24:12 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/jenkins
Link : http://ghc.haskell.org/trac/ghc/changeset/d1306ae74405c8ef621e92b34ec47774f62a8541/ghc
>---------------------------------------------------------------
commit d1306ae74405c8ef621e92b34ec47774f62a8541
Author: Ben Gamari <ben at smart-cactus.org>
Date: Mon May 29 13:55:58 2017 -0400
Build from source distribution
>---------------------------------------------------------------
d1306ae74405c8ef621e92b34ec47774f62a8541
Jenkinsfile | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 60d0b9d..a71d09d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,6 +11,21 @@ properties(
])
])
+
+stage("Build source distribution") {
+ node(label: 'linux') {
+ checkout scm
+ sh "git submodule update --init --recursive"
+ sh """
+ ./boot
+ ./configure
+ 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 +71,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