Use local ghcup-*.json in travis

This commit is contained in:
Julian Ospald 2020-04-15 15:07:37 +02:00
parent b3105b439c
commit b532511cd5
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 14 additions and 11 deletions

View File

@ -10,6 +10,9 @@ ecabal() {
cabal --store-dir="$(pwd)"/.store "$@" cabal --store-dir="$(pwd)"/.store "$@"
} }
eghcup() {
ghcup -v -c -s file://$(pwd)/ghcup-${JSON_VERSION}.json "$@"
}
# build # build
ecabal update ecabal update
@ -32,27 +35,27 @@ rm -rf "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup
ghcup-gen check -f ghcup-${JSON_VERSION}.json ghcup-gen check -f ghcup-${JSON_VERSION}.json
ghcup numeric-version eghcup numeric-version
ghcup -v -c install ${GHC_VERSION} eghcup install ${GHC_VERSION}
ghcup -v -c set ${GHC_VERSION} eghcup set ${GHC_VERSION}
ghcup -v -c install-cabal eghcup install-cabal
cabal --version cabal --version
ghcup -v -c debug-info eghcup debug-info
ghcup -v -c list eghcup list
ghcup -v -c list -t ghc eghcup list -t ghc
ghcup -v -c list -t cabal eghcup list -t cabal
ghc --version ghc --version
ghci --version ghci --version
ghc-$(ghc --numeric-version) --version ghc-$(ghc --numeric-version) --version
ghci-$(ghc --numeric-version) --version ghci-$(ghc --numeric-version) --version
ghcup -v upgrade eghcup upgrade
ghcup -v upgrade -f eghcup upgrade -f
ghcup -v rm $(ghc --numeric-version) eghcup rm $(ghc --numeric-version)