This repository was archived by the owner on Nov 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
92 lines (79 loc) · 3.58 KB
/
Makefile
File metadata and controls
92 lines (79 loc) · 3.58 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
PROJECT_NAME=mmsinterface
DC_FUNCTIONAL=docker-compose -f Docker/docker-compose/functional.yml -p $(PROJECT_NAME)
DC_INTEGRATION=docker-compose -f Docker/docker-compose/integration.yml -p $(PROJECT_NAME)
DC_DEV=docker-compose -f Docker/docker-compose/dev.yml -p $(PROJECT_NAME)
DC_TEST=docker-compose -f Docker/docker-compose/test.yml -p $(PROJECT_NAME)
start: clean-dev dev-up
test: clean-test test-up functional-up
rebuild-dev: clean-dev build-up-dev
start-unit: clean-test test-up
start-func: clean-test functional-up
start-func-dev: clean-test functional-up-interactive
start-func-local: clean-test functional-up-interactive-local
start-int: clean-test integration-up
start-int-dev: clean-test integration-up-interactive
start-int-local: clean-test integration-up-interactive-local
rebuild-func: clean-test build-up-functional
rebuild-func-dev: clean-test build-up-functional-interactive
rebuild-func-local: clean-test build-up-functional-interactive-local
rebuild-int: clean-test build-up-integration
rebuild-int-dev: clean-test build-up-integration-interactive
rebuild-int-local: clean-test build-up-integration-interactive-local
clean-dev:
${DC_DEV} rm -f
build-up-dev:
${DC_DEV} build
${DC_DEV} up
dev-up:
${DC_DEV} up
clean-test:
${DC_TEST} rm -f
${DC_FUNCTIONAL} rm -f
${DC_INTEGRATION} rm -f
test-up:
${DC_TEST} up --exit-code-from interface
functional-up:
./Docker/scripts/functional_test.sh
build-up-functional:
./Docker/scripts/functional_test.sh --build
functional-up-interactive:
./Docker/scripts/functional_test.sh --interactive
build-up-functional-interactive:
./Docker/scripts/functional_test.sh --build --interactive
functional-up-interactive-local:
./Docker/scripts/functional_test.sh --interactive --local
build-up-functional-interactive-local:
./Docker/scripts/functional_test.sh --build --interactive --local
integration-up:
./Docker/scripts/functional_test.sh --config integration
build-up-integration:
./Docker/scripts/functional_test.sh --build --config integration
integration-up-interactive:
./Docker/scripts/functional_test.sh --interactive --config integration
build-up-integration-interactive:
./Docker/scripts/functional_test.sh --build --interactive --config integration
integration-up-interactive-local:
./Docker/scripts/functional_test.sh --interactive --local --config integration
build-up-integration-interactive-local:
./Docker/scripts/functional_test.sh --build --interactive --local --config integration
# These functions are for running Yarn functional tests manually with docker interactive containers.
# Can be used with Docker or Local Selenium instance.
# The yarn environment also sets the mockserver-client and test environment. If Selenium is running locally, we need
# to set APP to the local domain because they are in the same scope and vice versa. However, MOCKSERVER is
# always set to the local domain because it is scoped to yarn, which is running locally in.
MOCKSERVER_DOMAIN=0.0.0.0
SELENIUM_ADDRESS=http://0.0.0.0:4444/wd/hub
APP_DOCKER_DOMAIN=interface
APP_LOCAL_DOMAIN=0.0.0.0
FUNC_DOCKER=bash -c "SELENIUM_ADDRESS=${SELENIUM_ADDRESS} MOCKSERVER_DOMAIN=${MOCKSERVER_DOMAIN} APP_DOMAIN=${APP_DOCKER_DOMAIN} yarn test-functional"
FUNC_LOCAL=bash -c "MOCKSERVER_DOMAIN=${MOCKSERVER_DOMAIN} APP_DOMAIN=${APP_LOCAL_DOMAIN} yarn test-functional"
INT_DOCKER=bash -c "SELENIUM_ADDRESS=${SELENIUM_ADDRESS} APP_DOMAIN=${APP_DOCKER_DOMAIN} yarn test-integration"
INT_LOCAL=bash -c "APP_DOMAIN=${APP_LOCAL_DOMAIN} yarn test-integration"
test-functional:
${FUNC_DOCKER}
test-functional-local:
${FUNC_LOCAL}
test-integration:
${INT_DOCKER}
test-integration-local:
${INT_LOCAL}