mirror of
https://github.com/SmartHoneybee/ubiquitous-memory
synced 2025-10-24 23:33:48 +02:00
Compare commits
15 Commits
untagged-a
...
untagged-a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9fbbcc9efa | ||
|
|
a841d22ea1 | ||
|
|
53a8823dd3 | ||
|
|
2b81bf9c79 | ||
|
|
656fcc3022 | ||
|
|
64b4df143a | ||
|
|
6245638306 | ||
|
|
f00ec524e3 | ||
|
|
5a5da5e379 | ||
|
|
f041990920 | ||
|
|
c5d346a10a | ||
|
|
a46b0240e4 | ||
|
|
767566cb74 | ||
|
|
cdb30c1b6a | ||
|
|
762155e2bd |
57
.travis.yml
57
.travis.yml
@@ -5,7 +5,7 @@ addons:
|
||||
sources:
|
||||
- sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
|
||||
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
|
||||
- sourceline: 'deb https://deb.nodesource.com/node_8.x trusty main'
|
||||
- sourceline: 'deb https://deb.nodesource.com/node_9.x trusty main'
|
||||
key_url: 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
|
||||
packages:
|
||||
- nodejs
|
||||
@@ -13,42 +13,37 @@ addons:
|
||||
- build-essential
|
||||
env:
|
||||
global:
|
||||
- GOV=1.9
|
||||
- GOPATH=$HOME/go
|
||||
- GOROOT=$HOME/$GOV/go
|
||||
- PATH=$GOROOT/bin:$PATH:$GOPATH/bin
|
||||
- GOV=1.10
|
||||
- GOSHA="b5a64335f1490277b585832d1f6c7f8c6c11206cba5cd3f771dcb87b98ad1a33 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=4.4.0
|
||||
- V=4.7.2
|
||||
before_install:
|
||||
- install -d $GOPATH $GOROOT
|
||||
- wget https://storage.googleapis.com/golang/go$GOV.linux-amd64.tar.gz
|
||||
- tar -C $HOME/$GOV -xzf go$GOV.linux-amd64.tar.gz
|
||||
- node --version
|
||||
- yarn versions
|
||||
- go version
|
||||
- install -d "${GOPATH}" "${GOROOT}" "${SRCROOT}/mattermost-"{server,webapp}
|
||||
- wget -q "https://storage.googleapis.com/golang/go${GOV}.linux-amd64.tar.gz"
|
||||
- sha256sum --check <<< "${GOSHA}"
|
||||
- tar -C "${HOME}/${GOV}" -xzf "go${GOV}.linux-amd64.tar.gz"
|
||||
- ulimit -n 8096
|
||||
- install -d ~/go/src/github.com/mattermost
|
||||
- cd ~/go/src/github.com/mattermost
|
||||
- wget "https://github.com/mattermost/mattermost-server/archive/v${V}.tar.gz"
|
||||
- tar xf "v${V}.tar.gz"
|
||||
- mv "mattermost-server-${V}" mattermost-server
|
||||
- rm "v${V}.tar.gz"
|
||||
- wget "https://github.com/mattermost/mattermost-webapp/archive/v${V}.tar.gz"
|
||||
- tar xf "v${V}.tar.gz"
|
||||
- mv "mattermost-webapp-${V}" mattermost-webapp
|
||||
- rm "v${V}.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
|
||||
- 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
|
||||
script:
|
||||
- make build -C ~/go/src/github.com/mattermost/mattermost-webapp
|
||||
- cd ~/go/src/github.com/mattermost/mattermost-server
|
||||
- patch -p1 < $TRAVIS_BUILD_DIR/make.patch
|
||||
- go get -d ./...
|
||||
- make build-linux package BUILD_NUMBER="dev-arm-tag${V}"
|
||||
- mv -v ~/go/src/github.com/mattermost/mattermost-server/dist/mattermost-*-linux-arm.tar.gz $TRAVIS_BUILD_DIR/mattermost-$V-arm.tar.gz
|
||||
- sha512sum $TRAVIS_BUILD_DIR/mattermost-$V-arm.tar.gz | tee $TRAVIS_BUILD_DIR/mattermost-$V-arm.tar.gz.sha512sum
|
||||
- patch -d "${SRCROOT}/mattermost-webapp" -p1 < "${TRAVIS_BUILD_DIR}/webpack.patch"
|
||||
- make build -C "${SRCROOT}/mattermost-webapp"
|
||||
- patch -d "${SRCROOT}/mattermost-server" -p1 < "${TRAVIS_BUILD_DIR}/make.patch"
|
||||
- go get -d github.com/mattermost/mattermost-server/...
|
||||
- make config-reset build-linux package-linux -C "${SRCROOT}/mattermost-server" GO="GOARCH=arm $(which go)" BUILD_NUMBER="dev-arm-tag${V}"
|
||||
- mv "${SRCROOT}/mattermost-server/dist/mattermost-team-linux-arm.tar.gz" "${TRAVIS_BUILD_DIR}/mattermost-${V}-arm.tar.gz"
|
||||
- sha512sum "${TRAVIS_BUILD_DIR}/mattermost-${V}-arm.tar.gz" | tee "${TRAVIS_BUILD_DIR}/mattermost-${V}-arm.tar.gz.sha512sum"
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key: "${GITHUB_OAUTH_TOKEN}"
|
||||
file:
|
||||
- "$TRAVIS_BUILD_DIR/mattermost-$V-arm.tar.gz"
|
||||
- "$TRAVIS_BUILD_DIR/mattermost-$V-arm.tar.gz.sha512sum"
|
||||
- "${TRAVIS_BUILD_DIR}/mattermost-${V}-arm.tar.gz"
|
||||
- "${TRAVIS_BUILD_DIR}/mattermost-${V}-arm.tar.gz.sha512sum"
|
||||
skip_cleanup: true
|
||||
|
||||
11
README.md
11
README.md
@@ -1 +1,10 @@
|
||||
# ubiquitous-memory
|
||||
# ubiquitous-memory: [Here be dragons][3]
|
||||
|
||||
[](https://travis-ci.org/SmartHoneybee/ubiquitous-memory)
|
||||
|
||||
[Travis CI][0] recipe that builds [Mattermost][1] for Linux on [ARMv7][2]-compatible devices.
|
||||
|
||||
[0]: https://travis-ci.org/SmartHoneybee/ubiquitous-memory
|
||||
[1]: https://mattermost.com/
|
||||
[2]: https://github.com/golang/go/wiki/GoArm#supported-architectures
|
||||
[3]: https://en.wikipedia.org/wiki/Here_be_dragons
|
||||
|
||||
55
make.patch
55
make.patch
@@ -2,55 +2,22 @@ diff --git a/build/release.mk b/build/release.mk
|
||||
index 5eaee80..e0e13bf 100644
|
||||
--- a/build/release.mk
|
||||
+++ b/build/release.mk
|
||||
@@ -3,7 +3,7 @@ dist: | check-style test package
|
||||
|
||||
build-linux:
|
||||
@echo Build Linux amd64
|
||||
- env GOOS=linux GOARCH=amd64 $(GO) install $(GOFLAGS) $(GO_LINKER_FLAGS) ./cmd/platform
|
||||
+ env GOOS=linux GOARCH=arm $(GO) install $(GOFLAGS) $(GO_LINKER_FLAGS) ./cmd/platform
|
||||
|
||||
build-osx:
|
||||
@echo Build OSX amd64
|
||||
@@ -32,6 +32,7 @@ package:
|
||||
|
||||
@# Resource directories
|
||||
cp -RL config $(DIST_PATH)
|
||||
+ mv $(DIST_PATH)/config/default.json $(DIST_PATH)/config/config.json
|
||||
cp -RL fonts $(DIST_PATH)
|
||||
cp -RL templates $(DIST_PATH)
|
||||
cp -RL i18n $(DIST_PATH)
|
||||
@@ -61,38 +62,14 @@ endif
|
||||
@@ -59,6 +59,7 @@ endif
|
||||
cp NOTICE.txt $(DIST_PATH)
|
||||
cp README.md $(DIST_PATH)
|
||||
|
||||
+_:
|
||||
@# ----- PLATFORM SPECIFIC -----
|
||||
|
||||
- @# Make osx package
|
||||
- @# Copy binary
|
||||
-ifeq ($(BUILDER_GOOS_GOARCH),"darwin_amd64")
|
||||
- cp $(GOPATH)/bin/platform $(DIST_PATH)/bin # from native bin dir, not cross-compiled
|
||||
-else
|
||||
- cp $(GOPATH)/bin/darwin_amd64/platform $(DIST_PATH)/bin # from cross-compiled bin dir
|
||||
-endif
|
||||
- @# Package
|
||||
- tar -C dist -czf $(DIST_PATH)-$(BUILD_TYPE_NAME)-osx-amd64.tar.gz mattermost
|
||||
- @# Cleanup
|
||||
- rm -f $(DIST_PATH)/bin/platform
|
||||
-
|
||||
- @# Make windows package
|
||||
- @# Copy binary
|
||||
-ifeq ($(BUILDER_GOOS_GOARCH),"windows_amd64")
|
||||
- cp $(GOPATH)/bin/platform.exe $(DIST_PATH)/bin # from native bin dir, not cross-compiled
|
||||
-else
|
||||
- cp $(GOPATH)/bin/windows_amd64/platform.exe $(DIST_PATH)/bin # from cross-compiled bin dir
|
||||
-endif
|
||||
- @# Package
|
||||
- cd $(DIST_ROOT) && zip -9 -r -q -l mattermost-$(BUILD_TYPE_NAME)-windows-amd64.zip mattermost && cd ..
|
||||
- @# Cleanup
|
||||
- rm -f $(DIST_PATH)/bin/platform.exe
|
||||
-
|
||||
@# Make osx package
|
||||
@@ -85,14 +86,15 @@ endif
|
||||
@# Cleanup
|
||||
rm -f $(DIST_PATH)/bin/platform.exe
|
||||
|
||||
+package-linux: package
|
||||
@# Make linux package
|
||||
@# Copy binary
|
||||
-ifeq ($(BUILDER_GOOS_GOARCH),"linux_amd64")
|
||||
+ifeq ($(BUILDER_GOOS_GOARCH),"linux_arm")
|
||||
ifeq ($(BUILDER_GOOS_GOARCH),"linux_amd64")
|
||||
cp $(GOPATH)/bin/platform $(DIST_PATH)/bin # from native bin dir, not cross-compiled
|
||||
else
|
||||
- cp $(GOPATH)/bin/linux_amd64/platform $(DIST_PATH)/bin # from cross-compiled bin dir
|
||||
|
||||
13
webpack.patch
Normal file
13
webpack.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/package.json b/package.json
|
||||
index d4eabf8..d076a53 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -146,7 +146,7 @@
|
||||
"scripts": {
|
||||
"check": "eslint --ignore-pattern node_modules --ignore-pattern non_npm_dependencies --ignore-pattern dist --ext .js --ext .jsx . --quiet",
|
||||
"fix": "eslint --ignore-pattern node_modules --ignore-pattern non_npm_dependencies --ignore-pattern dist --ext .js --ext .jsx . --quiet --fix",
|
||||
- "build": "cross-env NODE_ENV=production webpack --display-error-details --verbose --progress",
|
||||
+ "build": "cross-env NODE_ENV=production webpack --display-error-details --progress",
|
||||
"run": "cross-env NODE_ENV=production webpack --progress --watch",
|
||||
"run-fullmap": "webpack --progress --watch",
|
||||
"test": "jest --forceExit",
|
||||
Reference in New Issue
Block a user