-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpipeline.yml
64 lines (47 loc) · 2.23 KB
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
steps:
# The order here is defined for fast feedback when breaking something.
# -O0 builds come first for fast feedback.
- label: (-O0) -A working
command: |
NIX_PATH=nixpkgs=nixpkgs nix-build --no-link survey/default.nix \
--arg disableOptimization true -A working
- label: (-O0) -A workingStackageExecutables
command: |
NIX_PATH=nixpkgs=nixpkgs nix-build --no-link survey/default.nix \
--arg disableOptimization true -A workingStackageExecutables
# Normal builds
- label: -A working
command: |
NIX_PATH=nixpkgs=nixpkgs nix-build --no-link survey/default.nix \
-A working
- label: -A workingStackageExecutables
command: |
NIX_PATH=nixpkgs=nixpkgs nix-build --no-link survey/default.nix \
-A workingStackageExecutables
# integer-simple builds
# Doesn't pass yet
# - label: (integer-simple)
# command: |
# NIX_PATH=nixpkgs=nixpkgs nix-build --no-link survey/default.nix \
# --arg integer-simple true -A working -A workingStackageExecutables
# Note on GHC versions:
# It really only makes sense to test the compiler version matching the version
# of Stackage that was the base for nixpkgs's `haskellPackages`.
# Any other GHC version should be tested via `stack2nix` builds.
# Other
- label: stack2nix-example
command: |
cd static-stack2nix-builder-example/ && $(nix-build --no-link -A fullBuildScript)
# Stack via stack2nix
- label: static-stack
# TODO: Remove the override of unix-compat below once that's available in stack
command: |
set -eu -o pipefail
cd static-stack/
mkdir -p static-stack-test-dir
curl -L https://github.com/commercialhaskell/stack/archive/v2.1.3.tar.gz | tar -xz -C static-stack-test-dir
# Use lts-12 because ghc822 is no longer in nixpkgs
cp static-stack-test-dir/stack-*/stack-lts-12.yaml static-stack-test-dir/stack-*/stack.yaml
echo "Overriding point release of unix-compat, see https://github.com/nh2/static-haskell-nix/issues/79"
perl -pi -e 's/^packages:/packages:\n- unix-compat-0.5.2\@rev:0/g' static-stack-test-dir/stack-*/snapshot-lts-12.yaml
$(nix-build --no-link -A fullBuildScript --argstr stackDir $PWD/static-stack-test-dir/stack-*)