- run the build image task every time to avoid
running the test on stale code
- run the test from a script, so that we can
run the test on different pre-built images.
like:
# build an image now and run tests on it
make test
# run tests on previously built image
./run-test-on-img.sh ipfs-stable
# TODO: run test on git ref
./run-test-on-git-ref.sh <git-ref>
this commit changes how the dockertest image is built.
it moves the command into dockertest/Makefile. It also
uses a cached file that -- if removed with make clean
-- can signal whether the image should be rebuilt.
(it may be ideal to have it either detect code has
changed, or just rebuild every time. )