[Test] Write stack.yaml directly instead of stack init
This commit is contained in:
parent
8352b0207c
commit
01adcff875
@ -45,7 +45,7 @@ main = do
|
|||||||
"" -> "0"
|
"" -> "0"
|
||||||
x -> x
|
x -> x
|
||||||
in major ++ "." ++ minor
|
in major ++ "." ++ minor
|
||||||
void $ system $ "stack init --force --resolver=ghc-" ++ ghcver
|
void $ system $ "sed '$ a resolver: ghc-" ++ ghcver ++ "' stack.yaml.in > stack.yaml"
|
||||||
void $ system "stack setup"
|
void $ system "stack setup"
|
||||||
void $ system "stack build"
|
void $ system "stack build"
|
||||||
|
|
||||||
|
4
test/data/stack-project/stack.yaml.in
Normal file
4
test/data/stack-project/stack.yaml.in
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
flags: {}
|
||||||
|
packages:
|
||||||
|
- '.'
|
||||||
|
extra-deps: []
|
Loading…
Reference in New Issue
Block a user