summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorZubin Duggal <zubin.duggal@gmail.com>2021-12-13 18:04:41 +0530
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-01-11 19:37:45 -0500
commit85473a098ea60fac1633c179397c640889ce58ea (patch)
treeffb28aa36c4bf29a97bf14b97123a5c2f0b6b755 /.gitlab-ci.yml
parent02cf4bc6d349514d6740886ebed660a0c444f3d4 (diff)
downloadhaskell-85473a098ea60fac1633c179397c640889ce58ea.tar.gz
ci: test bootstrapping and use hadrian for source dists
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml43
1 files changed, 31 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3ce90b3f43..759f3ad253 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1271,27 +1271,46 @@ doc-tarball:
source-tarball:
stage: packaging
- needs: [validate-x86_64-linux-deb9-unreg-hadrian]
tags:
- x86_64-linux
- image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"
+ image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"
dependencies: []
- rules:
- - if: $CI_COMMIT_TAG
- when: always
artifacts:
paths:
- ghc-*.tar.xz
- - version
+ - hadrian-bootstrap-sources-*.tar.gz
script:
- - python3 mk/get-win32-tarballs.py download all
- ./boot
- ./configure
- - make sdist
- - mv sdistprep/*.xz .
- - make show! --quiet VALUE=ProjectVersion > version
- - source version
- - echo "$ProjectVersion" > version
+ - ./hadrian/build source-dist
+ - mv _build/source-dist/*.xz .
+ - python3 ./hadrian/bootstrap/bootstrap.py -w $GHC fetch -o hadrian-bootstrap-sources-$GHC_VERSION
+
+test-bootstrap:
+ stage: packaging
+ needs: [source-tarball]
+ tags:
+ - x86_64-linux
+ image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"
+ dependencies: [source-tarball]
+ script:
+ - mkdir test-bootstrap
+ - tar -xf ghc-*[0-9]-src.tar.xz -C test-bootstrap
+ - tar -xf ghc-*-testsuite.tar.xz -C test-bootstrap
+ - cp hadrian-bootstrap-sources-*.tar.gz test-bootstrap/ghc-*
+ - pushd test-bootstrap/ghc-*
+ - python3 ./hadrian/bootstrap/bootstrap.py -w $GHC --bootstrap-sources hadrian-bootstrap-sources-*.tar.gz
+ - export HADRIAN_PATH="$PWD/_build/bin/hadrian"
+ - .gitlab/ci.sh setup
+ - .gitlab/ci.sh configure
+ - .gitlab/ci.sh build_hadrian
+ - .gitlab/ci.sh test_hadrian
+ - popd
+ - rm -Rf test-bootstrap
+ variables:
+ TEST_ENV: "x86_64-linux-deb10-hadrian"
+ BIN_DIST_NAME: "ghc-x86_64-deb10-linux"
+ BUILD_FLAVOUR: "validate"
############################################################