Skip to content
Snippets Groups Projects
Unverified Commit 83bafb13 authored by Julian Ospald's avatar Julian Ospald :tea:
Browse files

Making travis use current dir for cabal store

parent 2df4591b
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,12 @@ variables: ...@@ -40,6 +40,12 @@ variables:
- ./.gitlab/before_script/darwin/install_deps.sh - ./.gitlab/before_script/darwin/install_deps.sh
variables: variables:
OS: "DARWIN" OS: "DARWIN"
after_script:
- BUILD_DIR=$CI_PROJECT_DIR
- echo "Cleaning $BUILD_DIR"
- cd $HOME
- rm -Rf "$BUILD_DIR"/*
- exit 0
......
...@@ -6,18 +6,22 @@ set -eux ...@@ -6,18 +6,22 @@ set -eux
mkdir -p "$CI_PROJECT_DIR"/.local/bin mkdir -p "$CI_PROJECT_DIR"/.local/bin
ecabal() {
cabal --store-dir="$(pwd)"/.store "$@"
}
# build # build
cabal update ecabal update
if [ "${OS}" = "DARWIN" ] ; then if [ "${OS}" = "DARWIN" ] ; then
cabal build -fcurl ecabal build -fcurl
else else
cabal build ecabal build
fi fi
cp "$(cabal new-exec --enable-tests --verbose=0 --offline sh -- -c 'command -v ghcup')" . cp "$(ecabal new-exec --enable-tests --verbose=0 --offline sh -- -c 'command -v ghcup')" .
cp "$(cabal new-exec --enable-tests --verbose=0 --offline sh -- -c 'command -v ghcup-gen')" . cp "$(ecabal new-exec --enable-tests --verbose=0 --offline sh -- -c 'command -v ghcup-gen')" .
# testing # testing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment