mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 06:48:30 +01:00
15 lines
406 B
Bash
Executable File
15 lines
406 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Convenience script for checking constraints locally
|
|
|
|
cd `dirname $0`
|
|
|
|
export GHCVER=$(sed -n "s/^ghc-version: \"\(.*\)\"/\1/p" "build-constraints.yaml")
|
|
|
|
NIGHTLY="nightly-$(date +%Y-%m-%d)"
|
|
curator update &&
|
|
curator constraints --target=$NIGHTLY &&
|
|
curator snapshot-incomplete --target=$NIGHTLY &&
|
|
curator snapshot &&
|
|
stack --resolver ghc-$GHCVER exec curator check-snapshot
|