CV/Makefile
Dan Anglin 95bd888c18
ci: add spell checking in CI pipeline
This commit adds a spell checking job to the testing
stage of the GitLab CI pipeline.
GNU Aspell is used to check the spelling of the JSON
CV.

The following changes are made in this commit:

- created a wrapper script that uses GNU Aspell to check
the word spellings in the CV. Errors are printed to the screen.
- created a make target to run the spellcheck script.
- created a new job in the test stage to run the new make target.
- create a custom word list for this project.
- corrections made in CV.
2020-02-08 13:56:21 +00:00

27 lines
485 B
Makefile

DOCKERFILE = ./docker/Dockerfile
IMAGE_NAME ?= cv-builder
IMAGE_TAG ?= latest
OUTPUT_DIR = __output/
CV_DATA_FILE = ./data/cv.json
.PHONY: all image publish tex pdf clean
all: pdf
image:
@docker build -f $(DOCKERFILE) -t $(IMAGE_NAME):$(IMAGE_TAG) .
publish: image
@docker push $(IMAGE_NAME):$(IMAGE_TAG)
spellcheck:
@./.gitlab/ci/bin/spellcheck -i $(CV_DATA_FILE)
tex:
@go run .
pdf: tex
@mtxrun --path=$(OUTPUT_DIR) --script context cv.tex
clean:
@rm -rf $(OUTPUT_DIR)