Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
head.hackage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ellie Hermaszewska
head.hackage
Commits
c1915da1
Commit
c1915da1
authored
5 years ago
by
Ben Gamari
Browse files
Options
Downloads
Patches
Plain Diff
README: Update CI documentation
parent
769ca914
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+10
-22
10 additions, 22 deletions
README.md
with
10 additions
and
22 deletions
README.md
+
10
−
22
View file @
c1915da1
...
...
@@ -145,40 +145,28 @@ $ nix build -f ./. --arg ghc "(import ghc-from-source.nix {ghc-path=$GHC_TREE;})
### GitLab CI
[
GHC's GitLab instance
](
https://gitlab.haskell.org/ghc/head.hackage
)
uses
GitLab CI and
`nix`
to build a subset of
the head
.
hackage
package set using GHC
snapshots.
GitLab CI and the
`
head
-
hackage
-ci`
tool (contained in the
`ci/`
directory)
to test the
`head.hackage`
patchset against GHC releases and
snapshots.
To run a similar build locally s
impl
y download
a binary distribution from a
`x86_64-fedora27-linux`
CI job and run
:
To run a similar build locally s
tart b
y download
ing and installing a binary
distribution appropriate for your distribution and then call the
`run-ci`
script
:
```
$ export GHC_TARBALL=./ghc-x86_64-fedora27-linux.tar.xz
# for extra correctness assurance...
$ export EXTRA_HC_OPTS=-dcore-lint
$
scripts/build-nix.sh
$
./run-ci
```
This will build
the set of packages defined by the
`testedPackages`
list in
`scripts/build-all.nix`
.
This will build
all packages having patches and produce a textual summary, as
well as a JSON file (
`result.json`
) describing the outcome
.
After building
`testedPackages`
(allowing for failures) the script job runs
`scripts/summarize.py`
, which produces a few artifacts:
*
a JSON summary (
`summary.json`
) which includes the full dependency graph as
well as which package builds failed
*
a DOT graph (
`summary.dot`
) showing the package depedencies and their build
success. This can be rendered with
`scripts/render-graph.sh`
.
*
a directory (
`./logs`
) of build logs
Note that
`build-nix.sh`
can also be used to build packages not included in
`testedPackages`
:
```
$ scripts/build-nix.sh pandoc
```
### Hackage repository
[
GHC's GitLab instance
](
https://gitlab.haskell.org/ghc/head.hackage
)
uses
GitLab CI to deploy a Hackage repository with the patches provided by
`head.hackage`
. See the
[
repository
](
)
for usage instructions.
`head.hackage`
. See the
[
repository
](
http://ghc.gitlab.haskell.org/head.hackage/
)
for usage
instructions.
### Travis CI
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment