Adding curl to upload pr builds
Этот коммит содержится в:
@@ -15,6 +15,8 @@ script: make dist-travis
|
|||||||
addons:
|
addons:
|
||||||
hosts:
|
hosts:
|
||||||
- 127.0.0.1 dockerhost
|
- 127.0.0.1 dockerhost
|
||||||
|
after_success:
|
||||||
|
- cd dist && curl -F "pr_number=$TRAVIS_PULL_REQUEST" -F "file=@mattermost.tar.gz" mattermod.mattermost.com:8087/upload_pr_build
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- sudo rm -rf dist/mattermost
|
- sudo rm -rf dist/mattermost
|
||||||
- sudo chown `whoami` dist/mattermost.tar.gz
|
- sudo chown `whoami` dist/mattermost.tar.gz
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -146,6 +146,8 @@ package:
|
|||||||
sed -i'.bak' 's|libs.min.js|libs-$(BUILD_NUMBER).min.js|g' $(DIST_PATH)/web/templates/head.html
|
sed -i'.bak' 's|libs.min.js|libs-$(BUILD_NUMBER).min.js|g' $(DIST_PATH)/web/templates/head.html
|
||||||
rm $(DIST_PATH)/web/templates/*.bak
|
rm $(DIST_PATH)/web/templates/*.bak
|
||||||
|
|
||||||
|
mv $(DIST_PATH)/config/config.json.bak $(DIST_PATH)/config/config.json
|
||||||
|
|
||||||
tar -C dist -czf $(DIST_PATH).tar.gz mattermost
|
tar -C dist -czf $(DIST_PATH).tar.gz mattermost
|
||||||
|
|
||||||
build-client:
|
build-client:
|
||||||
@@ -179,7 +181,7 @@ travis-init:
|
|||||||
|
|
||||||
if [ "$(TRAVIS_DB)" = "postgres" ]; then \
|
if [ "$(TRAVIS_DB)" = "postgres" ]; then \
|
||||||
sed -i'.bak' 's|mysql|postgres|g' config/config.json; \
|
sed -i'.bak' 's|mysql|postgres|g' config/config.json; \
|
||||||
sed -i'.bak' 's|mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8|postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable\&connect_timeout=10|g' config/config.json; \
|
sed -i'.bak2' 's|mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8|postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable\&connect_timeout=10|g' config/config.json; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(TRAVIS_DB)" = "mysql" ]; then \
|
if [ "$(TRAVIS_DB)" = "mysql" ]; then \
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user