42 lines
648 B
Bash
Executable File
42 lines
648 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# install GHCs
|
|
./ghcup -v install 8.2.2
|
|
./ghcup -v install 8.4.3
|
|
./ghcup -v install 8.6.1
|
|
|
|
# set GHC
|
|
./ghcup -v set 8.6.1
|
|
./ghcup -v set 8.4.3
|
|
|
|
# rm GHC
|
|
./ghcup -v rm 8.6.1
|
|
./ghcup -v rm 8.4.3
|
|
|
|
# set GHC
|
|
./ghcup -v set 8.2.2
|
|
|
|
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
|
|
|
|
# TODO: exceeds maximum time limit of travis
|
|
# compile GHC from source
|
|
#./ghcup -v compile 8.4.3 ghc-8.2.2
|
|
|
|
# install cabal-install
|
|
./ghcup -v install-cabal
|
|
|
|
cabal update
|
|
cabal install cabal-install
|
|
|
|
# install shellcheck
|
|
cabal new-update
|
|
cabal new-install ShellCheck
|
|
|
|
# check our script for errors
|
|
shellcheck ghcup
|
|
|
|
# self update
|
|
ghcup self-update
|