-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (38 loc) · 1.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
DOCKERHUB_PASSWORD := $(subst ",\",$(DOCKERHUB_PASSWORD))
build: down
@echo "Building xspec containers, networks, volumes"
docker-compose pull
docker-compose up --build -d
saxon: build
@echo "Running saxon cli"
docker-compose run saxon -s:${s} -xsl:${xsl} -o:${o}
test: build test-sch test-xslt test-coverage
@echo "Testing xslt and schematron with Docker"
test-sch:
@echo "Testing schematron with Docker"
for xspectest in $(shell ls tests/schematron/*.xspec); do \
echo "$$xspectest" ; \
docker-compose run xspec -s "$$xspectest" ; \
done
test-xslt:
@echo "Testing xslt with Docker"
for xspectest in $(shell ls tests/xslt/*.xspec); do \
echo "$$xspectest" ; \
docker-compose run xspec "$$xspectest" ; \
done
test-ci: test-login test-bash test-coverage
test-login:
@docker login -u ${DOCKERHUB_USER} --password=$(DOCKERHUB_PASSWORD)
test-bash:
@echo "CI/CD testing *.xspec with Docker & shell scripts"
docker build -t xspec -f .docker/test/Dockerfile .
bash .circleci/tests.sh
test-coverage:
@echo "Test Coverage being generated"
bash .circleci/coverage.sh
stop:
@echo "Stopping xspec containers, networks, volumes"
docker-compose stop
down: stop
@echo "Killing xspec containers, networks, volumes"
docker-compose rm -fv