1
0
mirror of https://github.com/SmartHoneybee/ubiquitous-memory synced 2025-10-25 15:53:48 +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
2 changed files with 15 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
language: c language: c
dist: trusty dist: trusty
sudo: required
addons: addons:
apt: apt:
sources: sources:
@@ -7,21 +8,26 @@ addons:
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg' key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
- sourceline: 'deb https://deb.nodesource.com/node_10.x trusty main' - sourceline: 'deb https://deb.nodesource.com/node_10.x trusty main'
key_url: 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key' 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: packages:
- nodejs - nodejs
- yarn - yarn
- build-essential - build-essential
- fakeroot
env: env:
global: global:
- GOV=1.10.2 - GOV=1.10.3
- GOSHA="4b677d698c65370afa33757b6954ade60347aaca310ea92a63ed717d7cb0c2ff go${GOV}.linux-amd64.tar.gz" - GOSHA="fa1b0e45d3b647c252f51f5e1204aba049cde4af177ef9f2181f43004f901035 go${GOV}.linux-amd64.tar.gz"
- GOPATH="${HOME}/go" - GOPATH="${HOME}/go"
- GOROOT="${HOME}/${GOV}/go" - GOROOT="${HOME}/${GOV}/go"
- PATH="${GOROOT}/bin:${PATH}:${GOPATH}/bin" - PATH="${GOROOT}/bin:${PATH}:${GOPATH}/bin"
- SRCROOT="${GOPATH}/src/github.com/mattermost" - SRCROOT="${GOPATH}/src/github.com/mattermost"
- GOARM=7 - GOARM=7
matrix: matrix:
- V=5.0.1 - V=5.1.0
before_install: before_install:
- install -d "${GOPATH}/bin" "${GOROOT}" "${SRCROOT}/mattermost-"{server,webapp} - install -d "${GOPATH}/bin" "${GOROOT}" "${SRCROOT}/mattermost-"{server,webapp}
# download & extract golang # download & extract golang
@@ -34,6 +40,10 @@ before_install:
# download & extract mattermost-webapp # download & extract mattermost-webapp
- wget -q "https://github.com/mattermost/mattermost-webapp/archive/v${V}.tar.gz" -O mattermost-webapp.tar.gz - 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 - 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: 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

View File

@@ -11,7 +11,7 @@ diff --git a/build/release.mk b/build/release.mk
index 238343e..1b7859f 100644 index 238343e..1b7859f 100644
--- a/build/release.mk --- a/build/release.mk
+++ b/build/release.mk +++ b/build/release.mk
@@ -72,7 +72,7 @@ endif @@ -60,7 +60,7 @@ endif
cp README.md $(DIST_PATH) cp README.md $(DIST_PATH)
@# ----- PLATFORM SPECIFIC ----- @# ----- PLATFORM SPECIFIC -----
@@ -20,7 +20,7 @@ index 238343e..1b7859f 100644
@# Make osx package @# Make osx package
@# Copy binary @# Copy binary
ifeq ($(BUILDER_GOOS_GOARCH),"darwin_amd64") ifeq ($(BUILDER_GOOS_GOARCH),"darwin_amd64")
@@ -102,7 +102,7 @@ endif @@ -90,7 +90,7 @@ endif
@# Cleanup @# Cleanup
rm -f $(DIST_PATH)/bin/mattermost.exe rm -f $(DIST_PATH)/bin/mattermost.exe
rm -f $(DIST_PATH)/bin/platform.exe rm -f $(DIST_PATH)/bin/platform.exe