|
|
@@ -36,17 +36,30 @@ test: test_unit test_acceptance
|
|
|
test_unit: docker-shared.yml
|
|
|
docker-compose -f docker-compose.yml ${DOCKER_COMPOSE_FLAGS} run --rm test_unit npm run test:unit -- ${MOCHA_ARGS}
|
|
|
|
|
|
-test_acceptance: test_acceptance_start_service test_acceptance_run test_acceptance_stop_service
|
|
|
+test_acceptance: test_acceptance_app test_acceptance_modules
|
|
|
|
|
|
-test_acceptance_start_service: docker-shared.yml
|
|
|
+test_acceptance_app: test_acceptance_app_start_service test_acceptance_app_run test_acceptance_app_stop_service
|
|
|
+
|
|
|
+test_acceptance_app_start_service: docker-shared.yml
|
|
|
docker-compose -f docker-compose.yml ${DOCKER_COMPOSE_FLAGS} up -d test_acceptance
|
|
|
|
|
|
-test_acceptance_stop_service: docker-shared.yml
|
|
|
+test_acceptance_app_stop_service: docker-shared.yml
|
|
|
docker-compose -f docker-compose.yml ${DOCKER_COMPOSE_FLAGS} stop test_acceptance redis mongo
|
|
|
|
|
|
-test_acceptance_run: docker-shared.yml
|
|
|
+test_acceptance_app_run: docker-shared.yml
|
|
|
docker-compose -f docker-compose.yml ${DOCKER_COMPOSE_FLAGS} exec -T test_acceptance npm run test:acceptance -- ${MOCHA_ARGS}
|
|
|
|
|
|
+test_acceptance_modules: docker-shared.yml
|
|
|
+ for dir in modules/*; \
|
|
|
+ do \
|
|
|
+ if [ -e $$dir/makefile ]; then \
|
|
|
+ (make test_acceptance_module MODULE=$$dir) \
|
|
|
+ fi \
|
|
|
+ done
|
|
|
+
|
|
|
+test_acceptance_module: docker-shared.yml
|
|
|
+ cd $(MODULE) && make test_acceptance
|
|
|
+
|
|
|
.PHONY:
|
|
|
all add install update test test_unit test_acceptance \
|
|
|
test_acceptance_start_service test_acceptance_stop_service \
|