on feature/issue-52 help sign in
gogol/script/travis-lifecycle-script
16 lines 437 B history raw
1#!/usr/bin/env bash
3set -e
5GHCVER=${GHCVER?"GHCVER needs to be set."}
6LIBRARY=${LIBRARY?"LIBRARY needs to be set."}
8path=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
10if [ "$LIBRARY" == "documentation" ]; then
11 echo "Building documentation..."
12 $path/travis-documentation
13else
14 echo "Running tests for ${LIBRARY}..."
15 stack --no-terminal --skip-ghc-check --stack-yaml stack-$GHCVER.yaml build --test --fast $LIBRARY
16fi