Commit 1e96b82b authored by Ben Gamari's avatar Ben Gamari 🐢

Collapse check stage into build stage

parent 31bfd0e5
......@@ -4,7 +4,6 @@ variables:
stages:
- build
- check
- deploy
image: nixos/nix
......@@ -30,6 +29,13 @@ build:
script:
- nix build -f . --no-link
- nix run -f . -c ghc-homepage build
- |
echo "==============================="
echo "Link Check:"
echo "==============================="
nix run -f . -c ghc-homepage server &
nix run -f . -c check.sh
kill %1
- nix-store --export $(nix-store -qR --include-outputs $(nix-instantiate --quiet .)) > store.nar
cache:
policy: pull-push
......@@ -40,19 +46,6 @@ build:
paths:
- _site
check-links:
stage: check
#allow_failure: true
tags:
- x86_64-linux
script:
- nix build -f .
- result/bin/ghc-homepage build
- result/bin/ghc-homepage preview &
- sleep 5
- result/bin/check.sh
- kill %1
pages:
stage: deploy
dependencies:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment