7 - image: fpco/stack-build:lts-13
9#-----------------------------------------------------------------------------
10# Common utility stuff, not to be modified usually
11#-----------------------------------------------------------------------------
13preinstall: &preinstall
15 echo 'export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH' >> $BASH_ENV
20 # Needs to happen after installing ca-certificates
22 key: v1-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}
26 key: v1-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}
44 command: apt-get install -y cabal-install-2.4
48 apt-get install -y ghc-<< parameters.ghcversion >>
50 name: build and test project
54 TMPDIR=`mktemp -d -t circleci.XXXXXXX`
55 cabal v2-sdist --output-dir=${TMPDIR}
59 cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --disable-optimization --dependencies-only --enable-tests --enable-benchmarks
60 cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --disable-optimization --enable-tests --enable-benchmarks 2>build.log
62 # fail if we had warnings in local build
63 # this is to work around the fact that cabal v2 doesn't allow
64 # us to use -Werror for just local build:
65 # https://github.com/haskell/cabal/issues/4247
66 ! grep -q "[Ww]arning:" build.log
67 cabal v2-test -w ghc-<< parameters.ghcversion >> -j2 --disable-optimization --enable-tests
68 cabal v2-haddock -w ghc-<< parameters.ghcversion >>
72#-----------------------------------------------------------------------------
74#-----------------------------------------------------------------------------
115 apt-get install -y ghc-8.6.5
117 stack test --system-ghc --fast --ghc-options="-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