git.iko.soy/typeable/pandoc
on master help sign in
CircleCI - use -O0 only for cabal-v2 builds.

Stack build will not disable optimizations; this way we can create a nightly.

commit062a8fb10bf3eb7b92d3b8b942f106293ef24902 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 25 Jan 2019, 09:11 (8 years ago) parentc32bcaa
1 file changed+5−5
.circleci/config.yml+5−5
.circleci/config.yml+5−5
@@ -3,7 +3,7 @@ version: "2.1"
33env: &env
44 environment:
55 LC_ALL: "C.UTF-8"
6− GHC_OPTS: "-O0 -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wincomplete-uni-patterns -Werror=missing-home-modules -Widentities -Wcpp-undef -fhide-source-paths"
6+ GHC_OPTS: "-Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wincomplete-uni-patterns -Werror=missing-home-modules -Widentities -Wcpp-undef -fhide-source-paths"
77 docker:
88 - image: fpco/stack-build:lts
99
@@ -52,15 +52,15 @@ commands:
5252 cd ${TMPDIR}
5353 tar xvzf *.tar.gz
5454 cd *
55− cabal v2-build -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}" all
56− cabal v2-build -j2 --enable-tests --ghc-options="${GHC_OPTS}" all 2>build.log
55+ cabal v2-build -j2 --dependencies-only --enable-tests --ghc-options="-O0 ${GHC_OPTS}" all
56+ cabal v2-build -j2 --enable-tests --ghc-options="-O0 ${GHC_OPTS}" all 2>build.log
5757 # fail if we had warnings in local build
5858 # this is to work around the fact that cabal v2 doesn't allow
5959 # us to use -Werror for just local build:
6060 # https://github.com/haskell/cabal/issues/4247
6161 ! grep -q "warning:" build.log
62− cabal v2-test --ghc-options="${GHC_OPTS}" 2>build.log
63− cabal v2-haddock --ghc-options="${GHC_OPTS}"
62+ cabal v2-test --ghc-options="-O0 ${GHC_OPTS}" 2>build.log
63+ cabal v2-haddock --ghc-options="-O0 ${GHC_OPTS}"
6464 cabal check
6565 - *save
6666