ghc-source-gen/check.sh
Judah Jacobson cf558caba5
Make ghc-show-ast independent of ghc-exactprint. (#22)
Lets us build it with (unreleased) ghc-8.8.  Also makes it possible
to test in CI without adding more dependencies.
2019-08-11 09:32:44 -07:00

18 lines
489 B
Bash
Executable File

#!/bin/bash
# Copyright 2019 Google LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
# This script tests that ghc-source-gen works on multiple GHC versions.
# TODO: turn this into a CI script.
set -ueo pipefail
for flag in --resolver={lts-11.22,lts-12.8,lts-13.23} --stack-yaml=stack-8.8.yaml
do
echo ====== $flag ======
stack test --no-terminal $flag
done