aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/check-testdata.sh
blob: b52935486e92971fb2163cfb3376e7102db829a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

CI_PROJECT_DIR=${CI_PROJECT_DIR:-.}

set -e -o pipefail

echo "=== Stack resolvers"

$CI_PROJECT_DIR/scripts/ci/update-stack-resolvers.sh \
        | tee tests/stack-resolvers.new

diff --from-file=tests/stack-resolvers tests/stack-resolvers.new \
        && echo OK

echo; echo; echo "=== Cabal versions"
$CI_PROJECT_DIR/scripts/ci/update-cabal-versions.sh \
        | tee tests/cabal-versions.new

diff --from-file=tests/cabal-versions tests/cabal-versions.new \
        && echo OK