Skip to content

Commit

Permalink
Merge pull request #36 from haskell-works/disable-parallel-garbage-co…
Browse files Browse the repository at this point in the history
…llector-in-cci-tests

Disable parallel garbage colllector in CCI tests
  • Loading branch information
newhoggy authored Apr 15, 2020
2 parents 106ce3d + 0ba2df2 commit 2a8195a
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ workflows:
context: haskell-ci
binary-cache-uri: ${BINARY_CACHE_URI-"http://hw-binary-cache-us-west-2-a.s3-website-us-west-2.amazonaws.com/archive"}
cabal-build-extra: --write-ghc-environment-files=ghc8.4.4+
cabal-test-extra: --test-show-details=direct
cabal-test-extra: --test-show-details=direct --test-options='+RTS -g1'

- haskell/build-with-binary-cache:
name: GHC 8.6.5
executor: haskell/ghc-8_6_5
context: haskell-ci
binary-cache-uri: ${BINARY_CACHE_URI-"http://hw-binary-cache-us-west-2-a.s3-website-us-west-2.amazonaws.com/archive"}
cabal-build-extra: --write-ghc-environment-files=ghc8.4.4+
cabal-test-extra: --test-show-details=direct
cabal-test-extra: --test-show-details=direct --test-options='+RTS -g1'

- haskell/build-with-binary-cache:
name: GHC 8.8.3
executor: haskell/ghc-8_8_3
context: haskell-ci
binary-cache-uri: ${BINARY_CACHE_URI-"http://hw-binary-cache-us-west-2-a.s3-website-us-west-2.amazonaws.com/archive"}
cabal-build-extra: --write-ghc-environment-files=ghc8.4.4+
cabal-test-extra: --test-show-details=direct
cabal-test-extra: --test-show-details=direct --test-options='+RTS -g1'

- haskell/build-with-binary-cache:
name: GHC 8.10.1
executor: haskell/ghc-8_10_1
context: haskell-ci
binary-cache-uri: ${BINARY_CACHE_URI-"http://hw-binary-cache-us-west-2-a.s3-website-us-west-2.amazonaws.com/archive"}
cabal-build-extra: --write-ghc-environment-files=ghc8.4.4+
cabal-test-extra: --test-show-details=direct
cabal-test-extra: --test-show-details=direct --test-options='+RTS -g1'

- merge-point/merge-point:
name: Build Ok
Expand Down
84 changes: 84 additions & 0 deletions project.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
#!/usr/bin/env bash

CABAL_FLAGS="-j8"

cmd="$1"

shift

cabal-install() {
cabal v2-install \
-j8 \
--installdir="$HOME/.local/bin" \
--overwrite-policy=always \
--disable-documentation \
$CABAL_FLAGS "$@"
}

cabal-build() {
cabal v2-build \
--enable-tests \
--write-ghc-environment-files=ghc8.4.4+ \
$CABAL_FLAGS "$@"
}

cabal-test() {
cabal v2-test \
--enable-tests \
--test-show-details=direct \
--test-options='+RTS -g1' \
$CABAL_FLAGS "$@"
}

cabal-exec() {
cabal v2-exec "$(echo *.cabal | cut -d . -f 1)" "$@"
}

cabal-bench() {
cabal v2-bench -j8 \
$CABAL_FLAGS "$@"
}

cabal-repl() {
cabal v2-repl \
$CABAL_FLAGS "$@"
}

cabal-clean() {
cabal v2-clean
}

case "$cmd" in
install)
cabal-install
;;

build)
cabal-build
;;

exec)
cabal-exec
;;

test)
cabal-build
cabal-test
;;

bench)
cabal-bench
;;

repl)
cabal-repl
;;

clean)
cabal-clean
;;

*)
echo "Unrecognised command: $cmd"
exit 1
esac

0 comments on commit 2a8195a

Please sign in to comment.