Adds tests to make sure all the `nginx.conf` directives (the redirects and rewrites and such) are all correct. - Uses the `busted` framework - The tests are run in a Docker container by the bash script `test.sh` - Self-signed certs are generated in `Dockerfile` for all the domain names - Adds new `Makefile` commands: `test`, `image-build` and `image-rm` Reviewed-on: #1 Co-authored-by: Catalin Mititiuc <webdevcat@proton.me> Co-committed-by: Catalin Mititiuc <webdevcat@proton.me>
20 lines
341 B
Makefile
20 lines
341 B
Makefile
image = miti.sh
|
|
|
|
run:
|
|
docker run --rm -it --init -v $(PWD):/opt/app -p 8080:80 $(image)
|
|
|
|
build:
|
|
docker run --rm -w /opt/app -v $(PWD):/opt/app $(image) sitegen
|
|
|
|
image-rm:
|
|
docker image rm $(image):latest
|
|
|
|
image-build:
|
|
docker build -t $(image) .
|
|
|
|
lint:
|
|
docker run --rm -w /opt/app -v $(PWD):/opt/app $(image) moonc -l .
|
|
|
|
test:
|
|
./test.sh
|