Add check-lts command

This commit is contained in:
Adam Bergmark 2023-12-18 14:19:25 +01:00 committed by Jens Petersen
parent 25bedc3f2c
commit 8518a38303
3 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ check-plan.yaml
/constraints.yaml
/snapshot.yaml
/snapshot-incomplete.yaml
/constraints.yaml.previous

14
check-lts Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
# Convenience script for checking constraints locally
cd `dirname $0`
export GHCVER=$(sed -n "s/^ghc-version: \"\(.*\)\"/\1/p" "lts-build-constraints.yaml")
LTS="lts-$@"
curator update &&
curator constraints --target=$LTS &&
curator snapshot-incomplete --target=$LTS &&
curator snapshot &&
stack --resolver ghc-$GHCVER exec curator check-snapshot

0
lts-build-constraints.yaml Normal file → Executable file
View File