on master help sign in
New curator check as a separate build matrix component
c091a14Kirill Zaborsky
.travis.yml+6−1
@@ -10,9 +10,14 @@ addons:
10 packages:
10 packages:
11 - libgmp-dev
11 - libgmp-dev
12
12
13+matrix:
14+ include:
15+ - env: CHECK_SCRIPT="./etc/ci-script.sh"
16+ - env: CHECK_SCRIPT="./etc/curator-2-check.sh"
17+
13# Edit etc/ci-script.sh to change GHC version
18# Edit etc/ci-script.sh to change GHC version
14script:
19script:
15−- ./etc/ci-script.sh
20+- $CHECK_SCRIPT
16
21
17# Caching doesn't work with sudo: true
22# Caching doesn't work with sudo: true
18#cache:
23#cache:
etc/ci-script.sh+1−15
@@ -15,13 +15,6 @@ bunzip2 stackage-curator.bz2
15chmod +x stackage-curator
15chmod +x stackage-curator
16mv stackage-curator ~/.local/bin
16mv stackage-curator ~/.local/bin
17
17
18−# Get new stackage-curator
19−CURATOR2=stackage-curator-2-9132b4b184f1f7f27c4c80ec0609460cea22ae75
20−wget "https://s3.amazonaws.com/www.snoyman.com/stackage-curator-2/$CURATOR2.bz2"
21−bunzip2 "$CURATOR2.bz2"
22−chmod +x $CURATOR2
23−mv $CURATOR2 ~/.local/bin/stackage-curator-2
24−
25# Install GHC
18# Install GHC
26stack setup $GHCVER
19stack setup $GHCVER
27
20
@@ -29,11 +22,4 @@ stack setup $GHCVER
29stack update
22stack update
30
23
31# Check
24# Check
32−stack --resolver ghc-$GHCVER exec stackage-curator check
25+exec stack --resolver ghc-$GHCVER exec stackage-curator check
33−
34−# New curator check
35−stackage-curator-2 update &&
36− stackage-curator-2 constraints &&
37− stackage-curator-2 snapshotincomplete &&
38− stackage-curator-2 snapshot &&
39− stackage-curator-2 checksnapshot
etc/curator-2-check.shnew file+20
@@ -0,0 +1,20 @@
1+#!/usr/bin/env bash
2+
3+set -euxo pipefail
4+
5+mkdir -p ~/.local/bin
6+export PATH=$HOME/.local/bin:$PATH
7+
8+# Get new Stackage curator
9+CURATOR2=stackage-curator-2-9132b4b184f1f7f27c4c80ec0609460cea22ae75
10+wget "https://s3.amazonaws.com/www.snoyman.com/stackage-curator-2/$CURATOR2.bz2"
11+bunzip2 "$CURATOR2.bz2"
12+chmod +x $CURATOR2
13+mv $CURATOR2 ~/.local/bin/stackage-curator-2
14+
15+# New curator check
16+stackage-curator-2 update &&
17+ stackage-curator-2 constraints &&
18+ stackage-curator-2 snapshotincomplete &&
19+ stackage-curator-2 snapshot &&
20+ stackage-curator-2 checksnapshot