Closed swamp-agr closed 3 years ago
It seems that Travis CI is setting up cabal-install version 2.0
.
It's not aligned properly with spec-version 3.0
.
Trying adopt haskell-ci
tool with current fay.cabal
.
Right now fay-tests
cannot recognize installed ghc
on CI server:
$ ${CABAL} v2-exec fay-tests -- --num-threads=4 -random 20
cabal: The program 'ghc' version >=7.0.1 is required but it could not be found.
The command "${CABAL} v2-exec fay-tests -- --num-threads=4 -random 20" exited with 1.
As mentioned here (https://github.com/haskell/cabal/issues/6722), autogen-modules
section could be skipped for executables.
Now I am able to reproduce CI behaviour locally for 8.8 branch (similar to #470).
Next steps:
ghc-pkg: cannot find package fay-base
proposed solution: extend whatAGreatFramework
with following logic:
After investigating, it was decided to postpone v2
handling as it is harder than I initially thought.
For now, downgrading Travis CI from v2
to v1
resolves ghc-pkg error: fay-base is missing
.
Opening separate PR, since there is an error while uploading
fay
on hackage:Bumping to
1.10
did not helped.