|
1 | 1 | SHELL := /bin/bash
|
2 | 2 |
|
3 |
| -SHELL_PREFIX=docker compose exec |
| 3 | +SHELL_PREFIX = docker compose exec |
| 4 | + |
4 | 5 | ALL_SERVICES = datastore dev-server firebase elasticsearch webpack-compiler angular-build redis
|
5 | 6 |
|
| 7 | +OS_NAME := $(shell uname) |
| 8 | + |
6 | 9 | FLAGS = save_datastore disable_host_checking no_auto_restart prod_env maintenance_mode source_maps
|
| 10 | + |
| 11 | +ifeq ($(OS_NAME),Darwin) |
| 12 | + CHROME_VERSION := $(shell /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version | awk '{print $$3}') |
| 13 | +else |
| 14 | + CHROME_VERSION := $(shell google-chrome --version | awk '{print $$3}') |
| 15 | +endif |
| 16 | + |
7 | 17 | $(foreach flag, $(FLAGS), $(eval $(flag) = false))
|
8 | 18 |
|
9 | 19 | .PHONY: help run-devserver build clean terminal stop-devserver \
|
10 |
| - $(addsuffix stop., $(ALL_SERVICES)) $(addsuffix logs., $(ALL_SERVICES)) \ |
11 |
| - $(addsuffix restart., $(ALL_SERVICES)) |
| 20 | + $(addsuffix stop., $(ALL_SERVICES)) $(addsuffix logs., $(ALL_SERVICES)) \ |
| 21 | + $(addsuffix restart., $(ALL_SERVICES)) |
12 | 22 |
|
13 | 23 | echo_flags:
|
14 | 24 | @echo "Flags:"
|
@@ -143,8 +153,6 @@ run_tests.acceptance: ## Runs the acceptance tests for the parsed suite
|
143 | 153 | @echo '------------------------------------------------------'
|
144 | 154 | $(MAKE) stop
|
145 | 155 |
|
146 |
| -CHROME_VERSION := $(shell google-chrome --version | awk '{print $$3}') |
147 |
| - |
148 | 156 | run_tests.e2e: ## Runs the e2e tests for the parsed suite
|
149 | 157 | ## Flags for the e2e tests
|
150 | 158 | ## suite: The suite to run the e2e tests
|
@@ -220,7 +228,5 @@ run_tests.lighthouse_performance: ## Runs the lighthouse performance tests for t
|
220 | 228 | @echo '-----------------------------------------------------------------------'
|
221 | 229 | $(MAKE) stop
|
222 | 230 |
|
223 |
| -OS_NAME := $(shell uname) |
224 |
| - |
225 | 231 | install_node: ## Installs node-16.13.0 in the oppia_tools directory
|
226 | 232 | sh ./docker/install_node.sh
|
0 commit comments