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"
8 - image: fpco/stack-build:lts
10#-----------------------------------------------------------------------------
11# Common utility stuff, not to be modified usually
12#-----------------------------------------------------------------------------
14preinstall: &preinstall
16 echo 'export PATH=/opt/cabal/bin:$PATH' >> $BASH_ENV
21 # Needs to happen after installing ca-certificates
23 key: v1-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}
27 key: v1-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}
45 command: apt-get install -y ghc-<< paramaters.ghcversion >>
48 apt-get install -y cabal-install-2.4
50 TMPDIR=`mktemp -d -t circleci.XXXXXXX`
51 cabal v2-sdist --output-dir=${TMPDIR}
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
57 # fail if we had warnings in local build
58 # this is to work around the fact that cabal v2 doesn't allow
59 # us to use -Werror for just local build:
60 # https://github.com/haskell/cabal/issues/4247
61 ! grep -q "warning:" build.log
62 cabal v2-test --ghc-options="${GHC_OPTS}" 2>build.log
63 cabal v2-haddock --ghc-options="${GHC_OPTS}"
67#-----------------------------------------------------------------------------
69#-----------------------------------------------------------------------------
110 apt-get install -y ghc-8.6.3
112 stack test --system-ghc --ghc-options="${GHC_OPTS} -Werror" .
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list