[commit: ghc] wip/jenkins: Build from source distribution (7faf062)
git at git.haskell.org
git at git.haskell.org
Mon May 29 18:19:46 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/jenkins
Link : http://ghc.haskell.org/trac/ghc/changeset/7faf0622e8df5553eddf6cb32bf4c31225653e88/ghc
>---------------------------------------------------------------
commit 7faf0622e8df5553eddf6cb32bf4c31225653e88
Author: Ben Gamari <ben at smart-cactus.org>
Date: Mon May 29 13:55:58 2017 -0400
Build from source distribution
>---------------------------------------------------------------
7faf0622e8df5553eddf6cb32bf4c31225653e88
Jenkinsfile | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 60d0b9d..56e590f 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,6 +11,17 @@ properties(
])
])
+
+stage("Build source distribution") {
+ node(label: 'linux') {
+ checkout scm
+ 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 +67,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