diff options
Diffstat (limited to 'scripts/ci/check-testdata.sh')
-rwxr-xr-x | scripts/ci/check-testdata.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/ci/check-testdata.sh b/scripts/ci/check-testdata.sh index 9e2182d..b529354 100755 --- a/scripts/ci/check-testdata.sh +++ b/scripts/ci/check-testdata.sh @@ -1,5 +1,7 @@ #!/bin/bash +CI_PROJECT_DIR=${CI_PROJECT_DIR:-.} + set -e -o pipefail echo "=== Stack resolvers" @@ -7,12 +9,12 @@ echo "=== Stack resolvers" $CI_PROJECT_DIR/scripts/ci/update-stack-resolvers.sh \ | tee tests/stack-resolvers.new -git diff --exit-code -- tests/stack-resolvers 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 -git diff --exit-code -- tests/cabal-versions tests/cabal-versions.new \ +diff --from-file=tests/cabal-versions tests/cabal-versions.new \ && echo OK |