init (#22752)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
af4c98cdf9
Коммит
3f6452bdf5
@@ -6,58 +6,6 @@ export NODE_OPTIONS=--max-old-space-size=4096
|
||||
i18n-extract: ## Extract strings for translation from the source code
|
||||
npm run i18n-extract
|
||||
|
||||
e2e/playwright/node_modules:
|
||||
@echo Install Playwright and its dependencies
|
||||
cd e2e/playwright && npm install
|
||||
|
||||
.PHONY: e2e-test
|
||||
e2e-test:
|
||||
@echo E2E: Running mattermost-mysql-e2e
|
||||
@if [ $(shell docker ps -a | grep -ci mattermost-mysql-e2e) -eq 0 ]; then \
|
||||
echo starting mattermost-mysql-e2e; \
|
||||
docker run --name mattermost-mysql-e2e -p 35476:3306 -e MYSQL_ROOT_PASSWORD=mostest \
|
||||
-e MYSQL_USER=mmuser -e MYSQL_PASSWORD=mostest -e MYSQL_DATABASE=mattermost_test -d mysql:5.7 > /dev/null; \
|
||||
elif [ $(shell docker ps | grep -ci mattermost-mysql-e2e) -eq 0 ]; then \
|
||||
echo restarting mattermost-mysql-e2e; \
|
||||
docker start mattermost-mysql-e2e > /dev/null; \
|
||||
fi
|
||||
|
||||
cd $(BUILD_SERVER_DIR) && [[ -f config/config.json ]] && \
|
||||
cp config/config.json config/config-backup.json && make config-reset || \
|
||||
echo "config.json not found" && make config-reset
|
||||
|
||||
@echo E2E: Starting the server
|
||||
cd $(BUILD_SERVER_DIR) && $(MAKE) run
|
||||
|
||||
@echo E2E: Generating test data
|
||||
cd $(BUILD_SERVER_DIR) && $(MAKE) test-data
|
||||
|
||||
@echo E2E: Running end-to-end testing
|
||||
cd e2e && npm install && npm run cypress:run
|
||||
|
||||
@echo E2E: Stoppping the server
|
||||
cd $(BUILD_SERVER_DIR) && $(MAKE) stop
|
||||
|
||||
@echo E2E: stopping mattermost-mysql-e2e
|
||||
docker stop mattermost-mysql-e2e > /dev/null
|
||||
|
||||
cd $(BUILD_SERVER_DIR) && [[ -f config/config-backup.json ]] && \
|
||||
cp config/config-backup.json config/config.json && echo "revert local config.json" || \
|
||||
echo "config-backup.json not found" && sed -i'' -e 's|"DataSource": ".*"|"DataSource": "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s"|g' config/config.json
|
||||
|
||||
@echo E2E: Tests completed
|
||||
|
||||
.PHONY: clean-e2e
|
||||
clean-e2e:
|
||||
@if [ $(shell docker ps -a | grep -ci mattermost-mysql-e2e) -eq 1 ]; then \
|
||||
echo stopping mattermost-mysql-e2e; \
|
||||
docker stop mattermost-mysql-e2e > /dev/null; \
|
||||
fi
|
||||
|
||||
cd $(BUILD_SERVER_DIR) && [[ -f config/config-backup.json ]] && \
|
||||
cp config/config-backup.json config/config.json && echo "revert local config.json" || \
|
||||
echo "config-backup.json not found" && sed -i'' -e 's|"DataSource": ".*"|"DataSource": "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s"|g' config/config.json
|
||||
|
||||
.PHONY: emojis
|
||||
emojis: ## Creates emoji JSON, JSX and Go files and extracts emoji images from the system font
|
||||
SERVER_DIR=$(BUILD_SERVER_DIR) npm run make-emojis
|
||||
|
||||
Ссылка в новой задаче
Block a user