on 69309cf help sign in
stackage/etc/ci-script.sh
25 lines 617 B history raw
1#!/usr/bin/env bash
3set -euxo pipefail
5export GHCVER=8.6.5
7# Download and unpack the stack executable
8mkdir -p ~/.local/bin
9export PATH=$HOME/.local/bin:$PATH
10curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
12# Get stackage-curator
13wget https://s3.amazonaws.com/stackage-travis/stackage-curator/stackage-curator.bz2
14bunzip2 stackage-curator.bz2
15chmod +x stackage-curator
16mv stackage-curator ~/.local/bin
18# Install GHC
19stack setup $GHCVER
21# Update the index
22stack update
24# Check
25exec stack --resolver ghc-$GHCVER exec stackage-curator check