Don't cache all builds when testing
This commit is contained in:
parent
1c482970a6
commit
30d24d065b
9
test.sh
9
test.sh
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ev
|
set -ev
|
||||||
export PATH="$PWD/test/here/bin:$PATH"
|
export PATH="$PWD/test/here/bin:$PATH"
|
||||||
HEREROCKS="python hererocks.py test/here --downloads test/cache --builds test/cache"
|
HEREROCKS="python hererocks.py test/here --downloads=test/cache"
|
||||||
|
|
||||||
rm test/here -rf
|
rm test/here -rf
|
||||||
$HEREROCKS -l^ -r^
|
$HEREROCKS -l^ -r^
|
||||||
@ -12,7 +12,7 @@ hererocks-test | grep "5\.3"
|
|||||||
$HEREROCKS -l^ -r^ | grep "already installed"
|
$HEREROCKS -l^ -r^ | grep "already installed"
|
||||||
|
|
||||||
rm test/here -rf
|
rm test/here -rf
|
||||||
$HEREROCKS -j 2.1 -r^
|
$HEREROCKS -j 2.1 -r^ | grep "Fetching" | grep "cached"
|
||||||
lua -v
|
lua -v
|
||||||
luarocks --version
|
luarocks --version
|
||||||
luarocks make
|
luarocks make
|
||||||
@ -25,5 +25,8 @@ lua -e "(function(...) assert(arg == nil) end)()"
|
|||||||
lua -e "assert(math.mod == nil)"
|
lua -e "assert(math.mod == nil)"
|
||||||
|
|
||||||
rm test/here -rf
|
rm test/here -rf
|
||||||
$HEREROCKS -l 5.3 --compat=none
|
$HEREROCKS -l 5.3 --compat=none --builds=test/builds
|
||||||
lua -e "assert(module == nil)"
|
lua -e "assert(module == nil)"
|
||||||
|
|
||||||
|
rm test/here -rf
|
||||||
|
$HEREROCKS -l 5.3 --compat=none --builds=test/builds | grep "Building" | grep "cached"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user