ghcup/.travis.sh

33 lines
606 B
Bash
Raw Normal View History

2018-09-29 16:02:14 +00:00
#!/bin/sh
set -e
# install GHCs
2018-09-29 17:17:14 +00:00
./ghcup -v install 8.2.2
./ghcup -v install 8.4.3
./ghcup -v install 8.6.1
2018-09-29 16:02:14 +00:00
# set GHC
2018-09-29 17:17:14 +00:00
./ghcup -v set 8.6.1
./ghcup -v set 8.4.3
2018-09-29 19:18:31 +00:00
# rm GHC
./ghcup -v rm 8.6.1
./ghcup -v rm 8.4.3
# set GHC
2018-09-29 17:17:14 +00:00
./ghcup -v set 8.2.2
2018-09-29 16:02:14 +00:00
# install cabal-install
wget https://www.haskell.org/cabal/release/cabal-install-2.2.0.0/cabal-install-2.2.0.0-x86_64-unknown-linux.tar.gz
tar -xzf cabal-install-2.2.0.0-x86_64-unknown-linux.tar.gz
export PATH="$HOME/.ghcup/bin:$PATH"
# install shellcheck
2018-09-29 16:10:48 +00:00
./cabal update
./cabal install ShellCheck
2018-09-29 16:02:14 +00:00
# check our script for errors
2018-09-29 19:34:26 +00:00
~/.cabal/bin/shellcheck ghcup