From 005c9fbb831041af60b617ffba7a2a0f0e5797dd Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 15 Jul 2021 22:40:45 +0200 Subject: [PATCH] Modernize CI scripts --- .gitlab/script/ghcup_release.sh | 4 ---- .gitlab/script/ghcup_version.sh | 11 +++-------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.gitlab/script/ghcup_release.sh b/.gitlab/script/ghcup_release.sh index 5939d91..df90266 100755 --- a/.gitlab/script/ghcup_release.sh +++ b/.gitlab/script/ghcup_release.sh @@ -15,10 +15,6 @@ git describe # build ecabal update -( - cd /tmp - ecabal install -w ghc-${GHC_VERSION} --installdir="$CI_PROJECT_DIR"/.local/bin hspec-discover -) if [ "${OS}" = "LINUX" ] ; then if [ "${ARCH}" = "32" ] ; then diff --git a/.gitlab/script/ghcup_version.sh b/.gitlab/script/ghcup_version.sh index 6959f60..3da1a0f 100755 --- a/.gitlab/script/ghcup_version.sh +++ b/.gitlab/script/ghcup_version.sh @@ -26,11 +26,6 @@ git describe --always ecabal update -( - cd /tmp - ecabal install -w ghc-${GHC_VERSION} --installdir="$CI_PROJECT_DIR"/.local/bin hspec-discover -) - if [ "${OS}" = "DARWIN" ] ; then ecabal build -w ghc-${GHC_VERSION} -ftui ecabal test -w ghc-${GHC_VERSION} -ftui ghcup-test @@ -83,10 +78,10 @@ ghcup-gen check -f ghcup-${JSON_VERSION}.yaml eghcup --numeric-version -eghcup install ${GHC_VERSION} +eghcup install ghc ${GHC_VERSION} [ `$(eghcup whereis ghc ${GHC_VERSION}) --numeric-version` = "${GHC_VERSION}" ] -eghcup set ${GHC_VERSION} -eghcup install-cabal ${CABAL_VERSION} +eghcup set ghc ${GHC_VERSION} +eghcup install cabal ${CABAL_VERSION} [ `$(eghcup whereis cabal ${CABAL_VERSION}) --numeric-version` = "${CABAL_VERSION}" ] cabal --version