git.iko.soy/typeable/pandoc
on master help sign in
circleci tweaks - mostly diagnostic.
commit7bd32d70a6c35cab3c3161f03a99176ee961ee03 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 26 Mar 2019, 13:56 (8 years ago) parentaf7486c
1 file changed+25−20
.circleci/config.yml+25−20
.circleci/config.yml+25−20
@@ -45,26 +45,31 @@ commands:
4545 command: apt-get install -y cabal-install-2.4
4646 - run:
4747 name: install ghc
48− command: apt-get install -y ghc-<< parameters.ghcversion >>
49− - run: |
50− set -e
51− cabal v2-update
52− TMPDIR=`mktemp -d -t circleci.XXXXXXX`
53− cabal v2-sdist --output-dir=${TMPDIR}
54− cd ${TMPDIR}
55− tar xvzf *.tar.gz
56− cd *
57− cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}" all
58− cabal v2-build -w ghc-<< parameters.ghcversion>> -j2 --enable-tests --ghc-options="${GHC_OPTS}" all 2>build.log
59− cat build.log
60− # fail if we had warnings in local build
61− # this is to work around the fact that cabal v2 doesn't allow
62− # us to use -Werror for just local build:
63− # https://github.com/haskell/cabal/issues/4247
64− ! grep -q "warning:" build.log
65− cabal v2-test -w ghc-<< parameters.ghcversion >> --ghc-options="${GHC_OPTS}" 2>build.log
66− cabal v2-haddock -w ghc-<< parameters.ghcversion >> --ghc-options="${GHC_OPTS}"
67− cabal check
48+ command: |
49+ apt-get install -y ghc-<< parameters.ghcversion >>
50+ ghc --version
51+ ghc-<< parameters.ghcversion >> --version
52+ - run:
53+ name: build project
54+ command: |
55+ set -e
56+ cabal v2-update
57+ TMPDIR=`mktemp -d -t circleci.XXXXXXX`
58+ cabal v2-sdist --output-dir=${TMPDIR}
59+ cd ${TMPDIR}
60+ tar xvzf *.tar.gz
61+ cd *
62+ cabal v2-build -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}" all
63+ cabal v2-build -j2 --enable-tests --ghc-options="${GHC_OPTS}" all 2>build.log
64+ cat build.log
65+ # fail if we had warnings in local build
66+ # this is to work around the fact that cabal v2 doesn't allow
67+ # us to use -Werror for just local build:
68+ # https://github.com/haskell/cabal/issues/4247
69+ ! grep -q "warning:" build.log
70+ cabal v2-test --ghc-options="${GHC_OPTS}" 2>build.log
71+ cabal v2-haddock --ghc-options="${GHC_OPTS}"
72+ cabal check
6873 - *save
6974
7075#-----------------------------------------------------------------------------