diff --git a/.gitignore b/.gitignore index 3df030f9..96237474 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ check-plan.yaml /constraints.yaml /snapshot.yaml /snapshot-incomplete.yaml +/constraints.yaml.previous diff --git a/check-lts b/check-lts new file mode 100755 index 00000000..e23566cc --- /dev/null +++ b/check-lts @@ -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 diff --git a/lts-build-constraints.yaml b/lts-build-constraints.yaml old mode 100644 new mode 100755