1
0
mirror of https://github.com/SmartHoneybee/ubiquitous-memory synced 2025-06-24 16:20:03 +02:00

Update .travis.yml (#31)

This commit is contained in:
Bee 2018-07-14 17:34:07 +02:00 committed by GitHub
parent 27211d5341
commit f95c324df8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View File

@ -1,5 +1,6 @@
language: c
dist: trusty
sudo: required
addons:
apt:
sources:
@ -7,21 +8,26 @@ addons:
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
- sourceline: 'deb https://deb.nodesource.com/node_10.x trusty main'
key_url: 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
# libpng16-16
- sourceline: 'deb-src http://archive.ubuntu.com/ubuntu xenial universe'
- sourceline: 'deb-src http://archive.ubuntu.com/ubuntu xenial-updates universe'
- sourceline: 'deb-src http://security.ubuntu.com/ubuntu xenial-security universe'
packages:
- nodejs
- yarn
- build-essential
- fakeroot
env:
global:
- GOV=1.10.2
- GOSHA="4b677d698c65370afa33757b6954ade60347aaca310ea92a63ed717d7cb0c2ff go${GOV}.linux-amd64.tar.gz"
- GOV=1.10.3
- GOSHA="fa1b0e45d3b647c252f51f5e1204aba049cde4af177ef9f2181f43004f901035 go${GOV}.linux-amd64.tar.gz"
- GOPATH="${HOME}/go"
- GOROOT="${HOME}/${GOV}/go"
- PATH="${GOROOT}/bin:${PATH}:${GOPATH}/bin"
- SRCROOT="${GOPATH}/src/github.com/mattermost"
- GOARM=7
matrix:
- V=5.0.1
- V=5.1.0
before_install:
- install -d "${GOPATH}/bin" "${GOROOT}" "${SRCROOT}/mattermost-"{server,webapp}
# download & extract golang
@ -34,6 +40,10 @@ before_install:
# download & extract mattermost-webapp
- wget -q "https://github.com/mattermost/mattermost-webapp/archive/v${V}.tar.gz" -O mattermost-webapp.tar.gz
- tar -C "${SRCROOT}/mattermost-webapp" --strip-components=1 -xf mattermost-webapp.tar.gz
# (trusty is old:) backport and install libpng16-16
- sudo -E apt-get build-dep -yq libpng16-16
- apt-get --build source libpng16-16
- sudo -E dpkg -i ./libpng16-16_*.deb
script:
- make build -C "${SRCROOT}/mattermost-webapp"
# workaround (instead of patch): platform binary is in GOOS_GOARCH, Makefile expects it in linux_amd64

View File

@ -11,7 +11,7 @@ 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
@@ -60,7 +60,7 @@ endif
cp README.md $(DIST_PATH)
@# ----- PLATFORM SPECIFIC -----
@ -20,7 +20,7 @@ index 238343e..1b7859f 100644
@# Make osx package
@# Copy binary
ifeq ($(BUILDER_GOOS_GOARCH),"darwin_amd64")
@@ -102,7 +102,7 @@ endif
@@ -90,7 +90,7 @@ endif
@# Cleanup
rm -f $(DIST_PATH)/bin/mattermost.exe
rm -f $(DIST_PATH)/bin/platform.exe