[commit: ghc] wip/jenkins: Build from source distribution (9ad430c)
git at git.haskell.org
git at git.haskell.org
Mon May 29 18:22:51 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/jenkins
Link : http://ghc.haskell.org/trac/ghc/changeset/9ad430ced2c486722665c7dd4ef974116dba79e8/ghc
>---------------------------------------------------------------
commit 9ad430ced2c486722665c7dd4ef974116dba79e8
Author: Ben Gamari <ben at smart-cactus.org>
Date: Mon May 29 13:55:58 2017 -0400
Build from source distribution
>---------------------------------------------------------------
9ad430ced2c486722665c7dd4ef974116dba79e8
Jenkinsfile | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 60d0b9d..2fc6ecd 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,6 +11,19 @@ properties(
])
])
+
+stage("Build source distribution") {
+ 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 +69,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