Fix travis

This commit is contained in:
Julian Ospald 2018-10-08 22:58:13 +08:00
parent 2193b42822
commit 866f08546c
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 11 additions and 11 deletions

View File

@ -23,29 +23,28 @@ edo ./ghcup -v rm 8.4.3
edo ./ghcup -v set 8.2.2
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$HOME/.local/bin:$PATH"
edo mkdir -p "$HOME"/.local/bin
edo cp ./ghcup "$HOME"/.local/bin/ghcup
# TODO: exceeds maximum time limit of travis
# compile GHC from source
#./ghcup -v compile 8.4.3 ghc-8.2.2
# install cabal-install
edo ./ghcup -v install-cabal
edo cabal update
edo cabal install cabal-install
# https://github.com/haskell/cabal/issues/5516
edo mkdir -p ~/.cabal/store/ghc-8.2.2/package.db
edo cabal new-update
edo ghcup -v install-cabal
# install shellcheck
edo cabal new-install ShellCheck
edo wget https://storage.googleapis.com/shellcheck/shellcheck-latest.linux.x86_64.tar.xz
edo tar -xJf shellcheck-latest.linux.x86_64.tar.xz
edo mv shellcheck-latest/shellcheck "$HOME"/.local/bin/shellcheck
# check our script for errors
edo shellcheck ghcup
# self update
edo mkdir -p "$HOME"/.local/bin
edo ./ghcup self-update
edo ghcup self-update
edo ghcup show
edo ghc --version

View File

@ -23,6 +23,7 @@ addons:
- make
- ncurses-dev
- python3
- realpath
- xz-utils
# TODO: also run checkbashisms.pl (currently two instances of non-compliance)