Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
H
head.hackage
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
head.hackage
Commits
ceeaf488
Commit
ceeaf488
authored
Oct 18, 2019
by
Ben Gamari
🐢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitlab-ci: Add support for builds against stable branch
parent
f82bb0bc
Pipeline
#11559
canceled with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
12 deletions
+39
-12
.gitlab-ci.yml
.gitlab-ci.yml
+39
-12
No files found.
.gitlab-ci.yml
View file @
ceeaf488
...
...
@@ -34,7 +34,43 @@ variables:
# GHC during the package builds. This is instantiated with, e.g., -dcore-lint
# during GHC validation builds.
build
:
# A build triggered from a ghc/ghc> pipeline.
build-pipeline
:
extends
:
.build
before_script
:
-
|
if [ -n "$GHC_PIPELINE_ID" ]; then
job_name="validate-x86_64-linux-fedora27"
job_id=$(nix run -f scripts/build-all.nix find-job \
--arg bindistTarball $GHC_TARBALL \
-c find-job.sh $GHC_PROJECT_ID $GHC_PIPELINE_ID $job_name)
echo "Pulling ${job_name} binary distribution from Pipeline $GHC_PIPELINE_ID (job $job_id)..."
fi
only
:
-
api
-
pipelines
-
triggers
-
web
# Build against the master branch
build-master
:
extends
:
.build
variables
:
GHC_TARBALL
:
"
https://gitlab.haskell.org/api/v4/projects/1/jobs/artifacts/master/raw/ghc-x86_64-fedora27-linux.tar.xz?job=validate-x86_64-linux-fedora27"
only
:
-
branches
-
merge_requests
# Build against the 8.8 branch
build-8.8
:
extends
:
.build
variables
:
GHC_TARBALL
:
"
https://gitlab.haskell.org/api/v4/projects/1/jobs/artifacts/ghc-8.8/raw/ghc-8.8.1-x86_64-unknown-linux.tar.xz?job=validate-x86_64-linux-fedora27"
only
:
-
branches
-
merge_requests
.build
:
stage
:
test
tags
:
...
...
@@ -44,20 +80,11 @@ build:
image
:
nixos/nix
cache
:
key
:
build-
all
key
:
build-
HEAD
paths
:
-
store.nar
script
:
-
|
if [ -n "$GHC_PIPELINE_ID" ]; then
job_name="validate-x86_64-linux-fedora27"
job_id=$(nix run -f scripts/build-all.nix find-job \
--arg bindistTarball $GHC_TARBALL \
-c find-job.sh $GHC_PROJECT_ID $GHC_PIPELINE_ID $job_name)
echo "Pulling ${job_name} binary distribution from Pipeline $GHC_PIPELINE_ID (job $job_id)..."
fi
-
echo "Bindist tarball is $GHC_TARBALL"
-
|
nix build \
...
...
@@ -115,7 +142,7 @@ update-repo:
-
cp summary.dot.svg repo
dependencies
:
-
build
-
build
-master
after_script
:
-
rm -Rf keys
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment