[Git][ghc/ghc][master] 5 commits: gitlab-ci: Improve error message on failure of doc-tarball job
Ben Gamari
gitlab at gitlab.haskell.org
Sat Apr 20 23:36:13 UTC 2019
Ben Gamari pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
37b1a6da by Ben Gamari at 2019-04-20T15:55:20Z
gitlab-ci: Improve error message on failure of doc-tarball job
Previously the failure was quite nondescript.
- - - - -
e3fe2601 by Ben Gamari at 2019-04-20T15:55:35Z
gitlab-ci: Allow doc-tarball job to fail
Due to allowed failure of Windows job.
- - - - -
bd3872df by Ben Gamari at 2019-04-20T15:55:38Z
gitlab-ci: Only run release notes lint on release tags
- - - - -
2145b738 by Ben Gamari at 2019-04-20T15:55:38Z
gitlab-ci: Add centos7 release job
- - - - -
983c53c3 by Ben Gamari at 2019-04-20T15:55:38Z
gitlab-ci: Do not build profiled libraries on 32-bit Windows
Due to #15934.
- - - - -
1 changed file:
- .gitlab-ci.yml
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -125,7 +125,8 @@ lint-changelogs:
lint-release-changelogs:
extends: .lint-changelogs
only:
- - tags
+ refs:
+ - /ghc-[0-9]+\.[0-9]+\.[0-9]+-.*/
############################################################
@@ -457,6 +458,27 @@ release-x86_64-linux-deb8:
when: always
expire_in: 2 week
+#################################
+# x86_64-linux-centos7
+#################################
+
+release-x86_64-linux-centos7:
+ extends: .validate-linux
+ stage: full-build
+ image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-centos7:$DOCKER_REV"
+ variables:
+ # The sphinx release shipped with Centos 7 fails to build out documentation
+ BUILD_SPHINX_HTML: "NO"
+ BUILD_SPHINX_PDF: "NO"
+ TEST_ENV: "x86_64-linux-centos7"
+ BIN_DIST_PREP_TAR_COMP: "bindistprep/ghc-x86_64-centos7-linux.tar.xz"
+ only:
+ - tags
+ cache:
+ key: linux-x86_64-centos7
+ artifacts:
+ when: always
+ expire_in: 2 week
#################################
# x86_64-linux-fedora27
@@ -604,6 +626,8 @@ release-i386-windows:
MSYSTEM: MINGW32
BUILD_FLAVOUR: "perf"
CONFIGURE_ARGS: "--target=i386-unknown-mingw32"
+ # Due to #15934
+ BUILD_PROF_LIBS: "NO"
cache:
key: "i386-windows-$WINDOWS_TOOLCHAIN_VERSION"
@@ -615,6 +639,8 @@ nightly-i386-windows:
variables:
MSYSTEM: MINGW32
CONFIGURE_ARGS: "--target=i386-unknown-mingw32"
+ # Due to #15934
+ BUILD_PROF_LIBS: "NO"
cache:
key: "i386-windows-$WINDOWS_TOOLCHAIN_VERSION"
@@ -688,6 +714,11 @@ doc-tarball:
dependencies:
- validate-x86_64-linux-deb9
- validate-x86_64-windows
+ variables:
+ LINUX_BINDIST: "ghc-x86_64-deb9-linux.tar.xz"
+ WINDOWS_BINDIST: "ghc-x86_64-mingw32.tar.xz"
+ # Due to Windows allow_failure
+ allow_failure: true
artifacts:
paths:
- haddock.html.tar.xz
@@ -696,8 +727,17 @@ doc-tarball:
- index.html
- "*.pdf"
script:
+ - |
+ if [ ! -f "$LINUX_BINDIST" ]; then
+ echo "Error: $LINUX_BINDIST does not exist. Did the Debian 9 job fail?"
+ exit 1
+ fi
+ if [ ! -f "$WINDOWS_BINDIST" ]; then
+ echo "Error: $WINDOWS_BINDIST does not exist. Did the 64-bit Windows job fail?"
+ exit 1
+ fi
- rm -Rf docs
- - bash -ex distrib/mkDocs/mkDocs ghc-x86_64-deb9-linux.tar.xz ghc-x86_64-mingw32.tar.xz
+ - bash -ex distrib/mkDocs/mkDocs $LINUX_BINDIST $WINDOWS_BINDIST
- ls -lh
- mv docs/*.tar.xz docs/index.html .
@@ -764,6 +804,8 @@ pages:
dependencies:
- doc-tarball
image: ghcci/x86_64-linux-deb9:0.2
+ # Due to Windows allow_failure
+ allow_failure: true
tags:
- x86_64-linux
script:
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/compare/10776562d8b9c92f6dee0fec6294c07944b19442...983c53c3da7a2e4e9c91f21adbd93c68a7922bae
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/compare/10776562d8b9c92f6dee0fec6294c07944b19442...983c53c3da7a2e4e9c91f21adbd93c68a7922bae
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190420/f6f8d53f/attachment-0001.html>
More information about the ghc-commits
mailing list