Minimal PhantomJS Docker container using official Node base.
- Docker installed in your environment
- Copy the shell script
phantomjs
from project root to/usr/local/bin
or/opt/bin
(CoreOS)phantomjs
above usesyamaszone/phantomjs:latest
as the default image. If you need specific CLI version, see available tags.
- Project root contains a convenient
run
script to help performing typical tasks for developer workflow (e.g. build image, setup test framework to test image, run tests, etc.)
$ ./run help
Usage:
cba | configure-bats-assert : Configure bats-assert library (first-time only).
stf | setup-test-framework : Setup test framework (first-time only).
build : Build image with the given tag (default=latest).
tests : Run tests.
help : Show this help.
- The project is configured to run tests via CircleCI when any new changes are pushed to
master