Skip to content

Commit

Permalink
Enable tests and benchmarks for stack
Browse files Browse the repository at this point in the history
  • Loading branch information
jneira committed Jan 17, 2020
1 parent 1c0f2e8 commit 24afd10
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/Distribution/Helper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -518,17 +518,15 @@ buildProjectTarget qe mu stage = do
} -> do
let projdir = plStackProjectDir qeProjLoc
let workdir_opts = Stack.workdirArg qe
let opts = workdir_opts ++
[ "--stack-yaml="++plStackYaml, "build", "."
, "--test", "--bench", "--no-run-tests", "--no-run-benchmarks"
] ++ stage_opts
case mu of
Just Unit{uPackage=Package{pSourceDir}} ->
Stack.callStackCmd qe (Just pSourceDir) $
workdir_opts ++
[ "--stack-yaml="++plStackYaml, "build", "."
] ++ stage_opts
Stack.callStackCmd qe (Just pSourceDir) opts
Nothing ->
Stack.callStackCmd qe (Just projdir) $
workdir_opts ++
[ "--stack-yaml="++plStackYaml, "build"
] ++ stage_opts
Stack.callStackCmd qe (Just projdir) opts

getFileModTime :: FilePath -> IO (FilePath, EpochTime)
getFileModTime f = do
Expand Down

0 comments on commit 24afd10

Please sign in to comment.