mirror of
https://github.com/SmartHoneybee/ubiquitous-memory
synced 2025-10-26 00:03:48 +02:00
Update .travis.yml (#29)
This commit is contained in:
15
.travis.yml
15
.travis.yml
@@ -21,15 +21,13 @@ env:
|
|||||||
- SRCROOT="${GOPATH}/src/github.com/mattermost"
|
- SRCROOT="${GOPATH}/src/github.com/mattermost"
|
||||||
- GOARM=7
|
- GOARM=7
|
||||||
matrix:
|
matrix:
|
||||||
- V=4.10.1
|
- V=5.0.0
|
||||||
before_install:
|
before_install:
|
||||||
- install -d "${GOPATH}" "${GOROOT}" "${SRCROOT}/mattermost-"{server,webapp}
|
- install -d "${GOPATH}/bin" "${GOROOT}" "${SRCROOT}/mattermost-"{server,webapp}
|
||||||
# download & extract golang
|
# download & extract golang
|
||||||
- wget -q "https://storage.googleapis.com/golang/go${GOV}.linux-amd64.tar.gz"
|
- wget -q "https://storage.googleapis.com/golang/go${GOV}.linux-amd64.tar.gz"
|
||||||
- sha256sum --check <<< "${GOSHA}"
|
- sha256sum --check <<< "${GOSHA}"
|
||||||
- tar -C "${HOME}/${GOV}" -xzf "go${GOV}.linux-amd64.tar.gz"
|
- tar -C "${HOME}/${GOV}" -xzf "go${GOV}.linux-amd64.tar.gz"
|
||||||
# set maximum number of open file descriptors
|
|
||||||
- ulimit -n 8096
|
|
||||||
# download & extract mattermost-server
|
# download & extract mattermost-server
|
||||||
- wget -q "https://github.com/mattermost/mattermost-server/archive/v${V}.tar.gz" -O mattermost-server.tar.gz
|
- wget -q "https://github.com/mattermost/mattermost-server/archive/v${V}.tar.gz" -O mattermost-server.tar.gz
|
||||||
- tar -C "${SRCROOT}/mattermost-server" --strip-components=1 -xf mattermost-server.tar.gz
|
- tar -C "${SRCROOT}/mattermost-server" --strip-components=1 -xf mattermost-server.tar.gz
|
||||||
@@ -39,12 +37,9 @@ before_install:
|
|||||||
script:
|
script:
|
||||||
- make build -C "${SRCROOT}/mattermost-webapp"
|
- make build -C "${SRCROOT}/mattermost-webapp"
|
||||||
# workaround (instead of patch): platform binary is in GOOS_GOARCH, Makefile expects it in linux_amd64
|
# workaround (instead of patch): platform binary is in GOOS_GOARCH, Makefile expects it in linux_amd64
|
||||||
- install -d "${GOPATH}/bin/linux_amd64"
|
- ln -s "${GOPATH}/bin/linux_arm" "${GOPATH}/bin/linux_amd64"
|
||||||
- ln -s "${GOPATH}/bin/linux_arm/platform" "${GOPATH}/bin/linux_amd64/platform"
|
# adapt and revert reverted commit, https://github.com/mattermost/mattermost-server/pull/8537
|
||||||
# install dependencies
|
- patch -d "${SRCROOT}/mattermost-server" -p1 < "${TRAVIS_BUILD_DIR}/build-release.patch"
|
||||||
- go get -d github.com/mattermost/mattermost-server/...
|
|
||||||
# revert reverted commit, https://github.com/mattermost/mattermost-server/pull/8537
|
|
||||||
- wget -qO - https://patch-diff.githubusercontent.com/raw/mattermost/mattermost-server/pull/8537.patch | patch -d "${SRCROOT}/mattermost-server" -Rp1
|
|
||||||
# workaround (instead of patch): overwrite GO variable to enforce desired GOARCH
|
# workaround (instead of patch): overwrite GO variable to enforce desired GOARCH
|
||||||
- make config-reset build-linux package-linux -C "${SRCROOT}/mattermost-server" GO="GOARCH=arm $(which go)" BUILD_NUMBER="dev-arm-tag${V}"
|
- make config-reset build-linux package-linux -C "${SRCROOT}/mattermost-server" GO="GOARCH=arm $(which go)" BUILD_NUMBER="dev-arm-tag${V}"
|
||||||
# workaround (instead of patch): Makefile creates *-amd64.tar.gz
|
# workaround (instead of patch): Makefile creates *-amd64.tar.gz
|
||||||
|
|||||||
33
build-release.patch
Normal file
33
build-release.patch
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
From 556e16211ed1b4c146ca2a094688618458182ae7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Your Name <you@example.com>
|
||||||
|
Date: Wed, 6 Jun 2018 12:34:56 +0100
|
||||||
|
Subject: [PATCH] Split make goal
|
||||||
|
|
||||||
|
---
|
||||||
|
build/release.mk | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/build/release.mk b/build/release.mk
|
||||||
|
index 238343e..1b7859f 100644
|
||||||
|
--- a/build/release.mk
|
||||||
|
+++ b/build/release.mk
|
||||||
|
@@ -72,7 +72,7 @@ endif
|
||||||
|
cp README.md $(DIST_PATH)
|
||||||
|
|
||||||
|
@# ----- PLATFORM SPECIFIC -----
|
||||||
|
-
|
||||||
|
+_:
|
||||||
|
@# Make osx package
|
||||||
|
@# Copy binary
|
||||||
|
ifeq ($(BUILDER_GOOS_GOARCH),"darwin_amd64")
|
||||||
|
@@ -102,7 +102,7 @@ endif
|
||||||
|
@# Cleanup
|
||||||
|
rm -f $(DIST_PATH)/bin/mattermost.exe
|
||||||
|
rm -f $(DIST_PATH)/bin/platform.exe
|
||||||
|
-
|
||||||
|
+package-linux: package
|
||||||
|
@# Make linux package
|
||||||
|
@# Copy binary
|
||||||
|
ifeq ($(BUILDER_GOOS_GOARCH),"linux_amd64")
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
Reference in New Issue
Block a user