Fix some tests
This commit is contained in:
parent
d0ca3ee807
commit
523f43c3c9
@ -10,11 +10,10 @@ install:
|
|||||||
# - ( $CABAL122 && cabal install cabal-install --constraint "Cabal >= 1.22" && ghc-pkg unregister Cabal ) || true
|
# - ( $CABAL122 && cabal install cabal-install --constraint "Cabal >= 1.22" && ghc-pkg unregister Cabal ) || true
|
||||||
- echo $PATH
|
- echo $PATH
|
||||||
- which cabal
|
- which cabal
|
||||||
- cabal install cabal-install --constraint "Cabal == $(cabal --version | grep 'Cabal library' | awk '{ print $3 }' | awk -vFS=. '{ print $1 "." $2 }' | tail -n1).*"
|
|
||||||
# - cabal install Cabal --constraint "Cabal == $(cabal --version | grep 'Cabal library' | awk '{ print $3 }' | tail -n1)"
|
# - cabal install Cabal --constraint "Cabal == $(cabal --version | grep 'Cabal library' | awk '{ print $3 }' | tail -n1)"
|
||||||
- cabal install happy
|
- cabal install happy
|
||||||
- happy --version
|
- happy --version
|
||||||
- cabal install -j --only-dependencies --enable-tests
|
- cabal install -j --only-dependencies --enable-tests --constraint "tagged < 0.8"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- touch ChangeLog # Create ChangeLog if we're not on the release branch
|
- touch ChangeLog # Create ChangeLog if we're not on the release branch
|
||||||
@ -27,7 +26,7 @@ script:
|
|||||||
- if [ -n "$(ghc --version | awk '{ print $8 }' | sed -n '/^7.8/p')" ]; then export WERROR="--ghc-option=-Werror"; fi
|
- if [ -n "$(ghc --version | awk '{ print $8 }' | sed -n '/^7.8/p')" ]; then export WERROR="--ghc-option=-Werror"; fi
|
||||||
- cabal configure --enable-tests $WERROR
|
- cabal configure --enable-tests $WERROR
|
||||||
- cabal build
|
- cabal build
|
||||||
- export ghc_mod_libexecdir=$PWD/dist/build/cabal-helper-wrapper
|
- export cabal_helper_libexecdir=$HOME/.cabal/bin
|
||||||
- export ghc_mod_datadir=$PWD
|
- export ghc_mod_datadir=$PWD
|
||||||
- cabal test
|
- cabal test
|
||||||
|
|
||||||
|
@ -13,12 +13,12 @@ import Data.IORef (IORef, newIORef, readIORef, writeIORef, modifyIORef)
|
|||||||
import System.FilePath (normalise)
|
import System.FilePath (normalise)
|
||||||
import Text.PrettyPrint
|
import Text.PrettyPrint
|
||||||
|
|
||||||
import Bag (Bag, bagToList)
|
|
||||||
import ErrUtils (ErrMsg, errMsgShortDoc, errMsgExtraInfo)
|
import ErrUtils (ErrMsg, errMsgShortDoc, errMsgExtraInfo)
|
||||||
import GHC (DynFlags, SrcSpan, Severity(SevError))
|
import GHC (DynFlags, SrcSpan, Severity(SevError))
|
||||||
import HscTypes
|
import HscTypes
|
||||||
import Outputable
|
import Outputable
|
||||||
import qualified GHC as G
|
import qualified GHC as G
|
||||||
|
import Bag
|
||||||
|
|
||||||
import Language.Haskell.GhcMod.Convert
|
import Language.Haskell.GhcMod.Convert
|
||||||
import Language.Haskell.GhcMod.Doc (showPage)
|
import Language.Haskell.GhcMod.Doc (showPage)
|
||||||
|
@ -24,7 +24,7 @@ Description:
|
|||||||
For more information, please see its home page.
|
For more information, please see its home page.
|
||||||
|
|
||||||
Category: GHC, Development
|
Category: GHC, Development
|
||||||
Cabal-Version: >= 1.16
|
Cabal-Version: >= 1.14
|
||||||
Build-Type: Custom
|
Build-Type: Custom
|
||||||
Data-Files: elisp/Makefile
|
Data-Files: elisp/Makefile
|
||||||
elisp/*.el
|
elisp/*.el
|
||||||
@ -121,7 +121,7 @@ Library
|
|||||||
, bytestring
|
, bytestring
|
||||||
, cereal >= 0.4
|
, cereal >= 0.4
|
||||||
, containers
|
, containers
|
||||||
, cabal-helper >= 0.3
|
, cabal-helper >= 0.3.1.0
|
||||||
, deepseq
|
, deepseq
|
||||||
, directory
|
, directory
|
||||||
, filepath
|
, filepath
|
||||||
@ -146,9 +146,10 @@ Library
|
|||||||
, djinn-ghc >= 0.0.2.2
|
, djinn-ghc >= 0.0.2.2
|
||||||
if impl(ghc < 7.8)
|
if impl(ghc < 7.8)
|
||||||
Build-Depends: convertible
|
Build-Depends: convertible
|
||||||
if impl(ghc <= 7.4.2)
|
if impl(ghc < 7.5)
|
||||||
-- Only used to constrain random to a version that still works with GHC 7.4
|
-- Only used to constrain random to a version that still works with GHC 7.4
|
||||||
Build-Depends: random <= 1.0.1.1
|
Build-Depends: random <= 1.0.1.1,
|
||||||
|
ghc-prim
|
||||||
|
|
||||||
Executable ghc-mod
|
Executable ghc-mod
|
||||||
Default-Language: Haskell2010
|
Default-Language: Haskell2010
|
||||||
@ -229,7 +230,7 @@ Test-Suite spec
|
|||||||
PathsAndFilesSpec
|
PathsAndFilesSpec
|
||||||
HomeModuleGraphSpec
|
HomeModuleGraphSpec
|
||||||
|
|
||||||
Build-Depends: hspec
|
Build-Depends: hspec >= 2.0.0
|
||||||
if impl(ghc == 7.4.*)
|
if impl(ghc == 7.4.*)
|
||||||
Build-Depends: executable-path
|
Build-Depends: executable-path
|
||||||
X-Build-Depends-Like: CLibName
|
X-Build-Depends-Like: CLibName
|
||||||
|
@ -9,7 +9,7 @@ main = doctest
|
|||||||
, "-package", "transformers-" ++ VERSION_transformers
|
, "-package", "transformers-" ++ VERSION_transformers
|
||||||
, "-package", "mtl-" ++ VERSION_mtl
|
, "-package", "mtl-" ++ VERSION_mtl
|
||||||
, "-package", "directory-" ++ VERSION_directory
|
, "-package", "directory-" ++ VERSION_directory
|
||||||
, "-XConstraintKinds", "-XFlexibleContexts", "-XScopedTypeVariables", "-XRecordWildCards", "-XNamedFieldPuns"
|
, "-XScopedTypeVariables", "-XRecordWildCards", "-XNamedFieldPuns", "-XConstraintKinds", "-XFlexibleContexts", "-XDataKinds", "-XKindSignatures"
|
||||||
, "-idist/build/autogen/"
|
, "-idist/build/autogen/"
|
||||||
, "-optP-include"
|
, "-optP-include"
|
||||||
, "-optPdist/build/autogen/cabal_macros.h"
|
, "-optPdist/build/autogen/cabal_macros.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user