ghcup/.travis.sh

36 lines
565 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
2018-09-30 11:48:27 +00:00
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
2018-09-30 18:16:02 +00:00
# TODO: exceeds maximum time limit of travis
2018-09-30 11:39:40 +00:00
# compile GHC from source
2018-09-30 18:16:02 +00:00
#./ghcup -v compile 8.4.3 ghc-8.2.2
2018-09-30 11:39:40 +00:00
2018-09-29 16:02:14 +00:00
# install cabal-install
2018-09-30 08:46:50 +00:00
./ghcup -v install-cabal
2018-09-29 16:02:14 +00:00
# install shellcheck
2018-09-30 08:46:50 +00:00
cabal update
cabal install ShellCheck
2018-09-29 16:02:14 +00:00
# check our script for errors
2018-09-30 08:46:50 +00:00
shellcheck ghcup