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
Branches gitlab-travis
No related tags found
1 merge request!1Enable gitlab travis
Pipeline #18061 passed with warnings
......@@ -40,6 +40,12 @@ variables:
- ./.gitlab/before_script/darwin/install_deps.sh
variables:
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
mkdir -p "$CI_PROJECT_DIR"/.local/bin
ecabal() {
cabal --store-dir="$(pwd)"/.store "$@"
}
# build
cabal update
ecabal update
if [ "${OS}" = "DARWIN" ] ; then
cabal build -fcurl
ecabal build -fcurl
else
cabal build
ecabal build
fi
cp "$(cabal 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')" .
cp "$(ecabal new-exec --enable-tests --verbose=0 --offline sh -- -c 'command -v ghcup-gen')" .
# 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