mirror of
https://github.com/SmartHoneybee/ubiquitous-memory
synced 2025-10-26 00:03:48 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9d94c2ee9 | ||
|
|
8e4b90726c |
11
.travis.yml
11
.travis.yml
@@ -8,10 +8,11 @@ env:
|
|||||||
- DEBIAN_RELEASE='buster'
|
- DEBIAN_RELEASE='buster'
|
||||||
- DOCKER_PWD='/root'
|
- DOCKER_PWD='/root'
|
||||||
- DOCKER_IMAGE="debian:${DEBIAN_RELEASE}"
|
- DOCKER_IMAGE="debian:${DEBIAN_RELEASE}"
|
||||||
|
- GO_VERSION='1.15.5'
|
||||||
matrix:
|
matrix:
|
||||||
- GOOS='dragonfly' GOARCH='amd64'
|
- GOOS='dragonfly' GOARCH='amd64'
|
||||||
- GOOS='freebsd' GOARCH='amd64'
|
- GOOS='freebsd' GOARCH='amd64'
|
||||||
- GOOS='freebsd' GOARCH='arm'
|
#- GOOS='freebsd' GOARCH='arm'
|
||||||
- GOOS='linux' GOARCH='arm'
|
- GOOS='linux' GOARCH='arm'
|
||||||
- GOOS='linux' GOARCH='arm64'
|
- GOOS='linux' GOARCH='arm64'
|
||||||
- GOOS='linux' GOARCH='mips'
|
- GOOS='linux' GOARCH='mips'
|
||||||
@@ -21,10 +22,10 @@ env:
|
|||||||
- GOOS='linux' GOARCH='ppc64'
|
- GOOS='linux' GOARCH='ppc64'
|
||||||
- GOOS='linux' GOARCH='ppc64le'
|
- GOOS='linux' GOARCH='ppc64le'
|
||||||
- GOOS='linux' GOARCH='s390x'
|
- GOOS='linux' GOARCH='s390x'
|
||||||
- GOOS='netbsd' GOARCH='amd64'
|
#- GOOS='netbsd' GOARCH='amd64'
|
||||||
- GOOS='netbsd' GOARCH='arm'
|
#- GOOS='netbsd' GOARCH='arm'
|
||||||
- GOOS='openbsd' GOARCH='amd64'
|
#- GOOS='openbsd' GOARCH='amd64'
|
||||||
- GOOS='openbsd' GOARCH='arm'
|
#- GOOS='openbsd' GOARCH='arm'
|
||||||
before_install:
|
before_install:
|
||||||
- export MATTERMOST_RELEASE="$(grep 'mattermost' dependabot/go.mod | cut -d' ' -f3)"
|
- export MATTERMOST_RELEASE="$(grep 'mattermost' dependabot/go.mod | cut -d' ' -f3)"
|
||||||
- docker pull "${DOCKER_IMAGE}"
|
- docker pull "${DOCKER_IMAGE}"
|
||||||
|
|||||||
13
build.sh
13
build.sh
@@ -10,6 +10,8 @@ MATTERMOST_RELEASE="${MATTERMOST_RELEASE:-v5.4.0}"
|
|||||||
# node key id and release
|
# node key id and release
|
||||||
NODE_KEY="${NODE_KEY:-9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280}"
|
NODE_KEY="${NODE_KEY:-9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280}"
|
||||||
NODE_RELEASE="${NODE_RELEASE:-10}"
|
NODE_RELEASE="${NODE_RELEASE:-10}"
|
||||||
|
# golang version
|
||||||
|
GO_VERSION="${GO_VERSION:-1.15.5}"
|
||||||
|
|
||||||
if [ "$(id -u)" -eq 0 ]; then # as root user
|
if [ "$(id -u)" -eq 0 ]; then # as root user
|
||||||
# create build user, if needed
|
# create build user, if needed
|
||||||
@@ -43,15 +45,18 @@ if [ "$(id -u)" -eq 0 ]; then # as root user
|
|||||||
> '/etc/apt/sources.list.d/nodesource.list'
|
> '/etc/apt/sources.list.d/nodesource.list'
|
||||||
# update repositories
|
# update repositories
|
||||||
apt-get update
|
apt-get update
|
||||||
# install go from Debian backports
|
|
||||||
apt-get install --quiet --target-release "${DEBIAN_RELEASE}-backports" \
|
|
||||||
golang-go
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
apt-get install --quiet \
|
apt-get install --quiet \
|
||||||
wget build-essential patch git nodejs
|
wget build-essential patch git nodejs
|
||||||
# install 'pngquant' build dependencies (required by node module)
|
# install 'pngquant' build dependencies (required by node module)
|
||||||
apt-get build-dep --quiet \
|
apt-get build-dep --quiet \
|
||||||
pngquant
|
pngquant
|
||||||
|
# install go from golang.org
|
||||||
|
wget https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz
|
||||||
|
tar -xvf go${GO_VERSION}.linux-amd64.tar.gz
|
||||||
|
mv go /usr/local
|
||||||
|
export GOROOT=/usr/local/go
|
||||||
|
export PATH=$GOROOT/bin:$PATH
|
||||||
# FIXME go (executed by build user) writes to GOROOT
|
# FIXME go (executed by build user) writes to GOROOT
|
||||||
install --directory --owner="${BUILD_USER_NAME}" \
|
install --directory --owner="${BUILD_USER_NAME}" \
|
||||||
"$(go env GOROOT)/pkg/$(go env GOOS)_$(go env GOARCH)"
|
"$(go env GOROOT)/pkg/$(go env GOOS)_$(go env GOARCH)"
|
||||||
@@ -65,6 +70,8 @@ if [ "$(id -u)" -eq 0 ]; then # as root user
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
# as non-root user
|
# as non-root user
|
||||||
|
export GOROOT=/usr/local/go
|
||||||
|
export PATH=$GOROOT/bin:$PATH
|
||||||
cd "${HOME}"
|
cd "${HOME}"
|
||||||
# download and extract Mattermost sources
|
# download and extract Mattermost sources
|
||||||
for COMPONENT in server webapp; do
|
for COMPONENT in server webapp; do
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
module github.com/SmartHoneybee/ubiquitous-memory/dependabot
|
module github.com/SmartHoneybee/ubiquitous-memory/dependabot
|
||||||
|
|
||||||
require github.com/mattermost/mattermost-server/v5 v5.32.0
|
require github.com/mattermost/mattermost-server/v5 v5.33.1
|
||||||
|
|||||||
Reference in New Issue
Block a user