summaryrefslogtreecommitdiff
path: root/.gitlab/gen_ci.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-06-29 15:39:55 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-07-04 17:56:31 -0400
commit41eb749ada594961fc3276df6bb7319a396a167d (patch)
treeffada6b262cd881c187ab69927b84b8ff36fe85c /.gitlab/gen_ci.hs
parentd002c6e04f0c0f26c3ee24661eb4cf5620f994ab (diff)
downloadhaskell-41eb749ada594961fc3276df6bb7319a396a167d.tar.gz
Add nightly job for generating docs suitable for hackage upload
Diffstat (limited to '.gitlab/gen_ci.hs')
-rwxr-xr-x.gitlab/gen_ci.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/.gitlab/gen_ci.hs b/.gitlab/gen_ci.hs
index d6bff8e2da..ec9c7714b2 100755
--- a/.gitlab/gen_ci.hs
+++ b/.gitlab/gen_ci.hs
@@ -712,6 +712,10 @@ data JobGroup a = StandardTriple { v :: (String, a)
| ValidateOnly { v :: (String, a)
, n :: (String, a) } deriving Functor
+rename :: (String -> String) -> JobGroup a -> JobGroup a
+rename f (StandardTriple (nv, v) (nn, n) (nr, r)) = StandardTriple (f nv, v) (f nn, n) (f nr, r)
+rename f (ValidateOnly (nv, v) (nn, n)) = ValidateOnly (f nv, v) (f nn, n)
+
-- | Construct a 'JobGroup' which consists of a validate, nightly and release build with
-- a specific config.
standardBuildsWithConfig :: Arch -> Opsys -> BuildConfig -> JobGroup Job
@@ -756,6 +760,8 @@ jobs = M.fromList $ concatMap flattenJobGroup $
-- Fedora33 job is always built with perf so there's one job in the normal
-- validate pipeline which is built with perf.
, (standardBuildsWithConfig Amd64 (Linux Fedora33) releaseConfig)
+ -- This job is only for generating head.hackage docs
+ , hackage_doc_job (disableValidate (standardBuildsWithConfig Amd64 (Linux Fedora33) releaseConfig))
, disableValidate (standardBuildsWithConfig Amd64 (Linux Fedora33) dwarf)
, fastCI (standardBuilds Amd64 Windows)
, disableValidate (standardBuildsWithConfig Amd64 Windows nativeInt)
@@ -770,6 +776,8 @@ jobs = M.fromList $ concatMap flattenJobGroup $
]
where
+ hackage_doc_job = rename (<> "-hackage") . modifyJobs (addVariable "HADRIAN_ARGS" "--haddock-base-url")
+
tsan_jobs =
modifyJobs
( addVariable "TSAN_OPTIONS" "suppressions=$CI_PROJECT_DIR/rts/.tsan-suppressions"