File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ NIX_BUILD_ARGS="${NIX_BUILD_ARGS:-}"
7
7
8
8
cd $( dirname $0 )
9
9
10
+ printf " *** Cleaning package build directories..." >& 2
11
+ rm -rvf * /cabal.project.local * /.ghc.environment* * /dist * /dist-newstyle * /.stack-work
12
+ echo >& 2
13
+
10
14
printf " *** Running the nix-build tests...\n" >& 2
11
15
nix-build $NIX_BUILD_ARGS --no-out-link --keep-going ./default.nix
12
16
echo >& 2
@@ -33,21 +37,21 @@ printf "*** Checking that a nix-shell works for cabal...\n" >& 2
33
37
nix-shell $NIX_BUILD_ARGS \
34
38
--pure ./default.nix \
35
39
-A with-packages.test-shell \
36
- --run ' echo CABAL_CONFIG=$CABAL_CONFIG && type -p ghc && cd with-packages && rm -rf dist-newstyle .ghc-environment* && cabal new-build'
40
+ --run ' echo CABAL_CONFIG=$CABAL_CONFIG && type -p ghc && cd with-packages && cabal new-build'
37
41
echo >& 2
38
42
39
43
printf " *** Checking that a nix-shell works for cabal (doExactConfig component)...\n" >& 2
40
44
nix-shell $NIX_BUILD_ARGS \
41
45
--pure ./default.nix \
42
46
-A with-packages.test-shell-dec \
43
- --run ' echo CABAL_CONFIG=$CABAL_CONFIG && echo GHC_ENVIRONMENT=$GHC_ENVIRONMENT && cd with-packages && rm -rf dist-newstyle .ghc-environment* && cabal new-build'
47
+ --run ' echo CABAL_CONFIG=$CABAL_CONFIG && echo GHC_ENVIRONMENT=$GHC_ENVIRONMENT && cd with-packages && cabal new-build'
44
48
echo >& 2
45
49
46
50
printf " *** Checking that a nix-shell works for a multi-target project...\n" >& 2
47
51
nix-shell $NIX_BUILD_ARGS \
48
52
--pure ./default.nix \
49
53
-A cabal-simple.test-shell \
50
- --run ' cd cabal-simple && rm -rf dist-newstyle .ghc-environment* && cabal new-build'
54
+ --run ' cd cabal-simple && cabal new-build'
51
55
echo >& 2
52
56
53
57
printf " \n*** Finished successfully\n" >& 2
You can’t perform that action at this time.
0 commit comments