git.iko.soy/typeable/pandoc
on master help sign in
circleci config - remove GHC_OPTS.

Build into stack.yaml and cabal.project.local instead.

commitec99e9de56eddfbe09715c55d6c818fb6df40508 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 27 Mar 2019, 09:22 (8 years ago) parent9e876fb
1 file changed+4−5
.circleci/config.yml+4−5
.circleci/config.yml+4−5
@@ -3,7 +3,6 @@ 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"
76 docker:
87 - image: fpco/stack-build:lts
98
@@ -57,15 +56,15 @@ commands:
5756 cd ${TMPDIR}
5857 tar xvzf *.tar.gz
5958 cd *
60− cabal v2-build -w ghc-<< parameters.ghcversion >> --dependencies-only --enable-tests
61− cabal v2-build -w ghc-<< parameters.ghcversion >> --enable-tests 2>build.log
59+ cabal v2-build -w ghc-<< parameters.ghcversion >> --disable-optimization --dependencies-only --enable-tests --enable-benchmarks
60+ cabal v2-build -w ghc-<< parameters.ghcversion >> --disable-optimization --enable-tests --enable-benchmarks 2>build.log
6261 cat build.log
6362 # fail if we had warnings in local build
6463 # this is to work around the fact that cabal v2 doesn't allow
6564 # us to use -Werror for just local build:
6665 # https://github.com/haskell/cabal/issues/4247
6766 ! grep -q "warning:" build.log
68− cabal v2-test -w ghc-<< parameters.ghcversion >>
67+ cabal v2-test -w ghc-<< parameters.ghcversion >> --disable-optimization --enable-tests
6968 cabal v2-haddock -w ghc-<< parameters.ghcversion >>
7069 cabal check
7170 - *save
@@ -115,7 +114,7 @@ jobs:
115114 set -e
116115 apt-get install -y ghc-8.6.3
117116 stack update
118− stack test --system-ghc --ghc-options="${GHC_OPTS} -Werror" .
117+ stack test --system-ghc --fast --ghc-options="-Werror" .
119118 - *save
120119
121120workflows: