Fix travis
This commit is contained in:
parent
2193b42822
commit
866f08546c
21
.travis.sh
21
.travis.sh
@ -23,29 +23,28 @@ edo ./ghcup -v rm 8.4.3
|
|||||||
edo ./ghcup -v set 8.2.2
|
edo ./ghcup -v set 8.2.2
|
||||||
|
|
||||||
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$HOME/.local/bin:$PATH"
|
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
|
# TODO: exceeds maximum time limit of travis
|
||||||
# compile GHC from source
|
# compile GHC from source
|
||||||
#./ghcup -v compile 8.4.3 ghc-8.2.2
|
#./ghcup -v compile 8.4.3 ghc-8.2.2
|
||||||
|
|
||||||
# install cabal-install
|
# install cabal-install
|
||||||
edo ./ghcup -v install-cabal
|
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
|
|
||||||
|
|
||||||
# install shellcheck
|
# 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
|
# check our script for errors
|
||||||
edo shellcheck ghcup
|
edo shellcheck ghcup
|
||||||
|
|
||||||
# self update
|
# self update
|
||||||
edo mkdir -p "$HOME"/.local/bin
|
edo ghcup self-update
|
||||||
edo ./ghcup self-update
|
|
||||||
|
|
||||||
edo ghcup show
|
edo ghcup show
|
||||||
|
|
||||||
|
edo ghc --version
|
||||||
|
@ -23,6 +23,7 @@ addons:
|
|||||||
- make
|
- make
|
||||||
- ncurses-dev
|
- ncurses-dev
|
||||||
- python3
|
- python3
|
||||||
|
- realpath
|
||||||
- xz-utils
|
- xz-utils
|
||||||
|
|
||||||
# TODO: also run checkbashisms.pl (currently two instances of non-compliance)
|
# TODO: also run checkbashisms.pl (currently two instances of non-compliance)
|
||||||
|
Loading…
Reference in New Issue
Block a user