File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -38,22 +38,23 @@ args=(
38
38
)
39
39
40
40
cabal --store-dir=store update
41
- cabal --store-dir=store v2-build " ${args[@]} " cabal-install
41
+ cabal --store-dir=store v2-build " ${args[@]} " cabal-install:exe:cabal cabal-testsuite:cabal-tests
42
42
43
43
mkdir -p " out"
44
44
# shellcheck disable=SC2154
45
45
cp " $( cabal --store-dir=store list-bin " ${args[@]} " cabal-install:exe:cabal) " " out/cabal$ext "
46
+ cp " $( cabal --store-dir=store list-bin " ${args[@]} " cabal-testsuite:cabal-tests) " " out/cabal-tests$ext "
46
47
cp dist-newstyle/cache/plan.json " out/plan.json"
47
48
cd " out/"
48
49
49
50
# create tarball/zip
50
51
TARBALL_PREFIX=" cabal-install-$( " ./cabal" --numeric-version) "
51
52
case " ${TARBALL_EXT} " in
52
53
zip)
53
- zip " ${TARBALL_PREFIX} -${ARTIFACT} .${TARBALL_EXT} " " cabal${ext} " plan.json
54
+ zip " ${TARBALL_PREFIX} -${ARTIFACT} .${TARBALL_EXT} " " cabal${ext} " " cabal-tests ${ext} " plan.json
54
55
;;
55
56
tar.xz)
56
- tar caf " ${TARBALL_PREFIX} -${ARTIFACT} .${TARBALL_EXT} " " cabal${ext} " plan.json
57
+ tar caf " ${TARBALL_PREFIX} -${ARTIFACT} .${TARBALL_EXT} " " cabal${ext} " " cabal-tests ${ext} " plan.json
57
58
;;
58
59
* )
59
60
fail " Unknown TARBALL_EXT: ${TARBALL_EXT} "
Original file line number Diff line number Diff line change @@ -26,12 +26,7 @@ cabal --store-dir=store update
26
26
27
27
# TODO: we want to avoid building here... we should just
28
28
# be using the previously built 'cabal-tests' binary
29
- cabal --store-dir=store run \
30
- --disable-profiling \
31
- --enable-executable-stripping \
32
- --project-file=cabal.release.project \
33
- ${ADD_CABAL_ARGS} \
34
- cabal-testsuite:cabal-tests -- \
29
+ " $( pwd) /out/cabal-tests" \
35
30
--with-cabal " $( pwd) /out/cabal" \
36
31
--intree-cabal-lib " $( pwd) " \
37
32
--test-tmp " $( pwd) /testdb" \
You can’t perform that action at this time.
0 commit comments