mirror of
https://github.com/SmartHoneybee/ubiquitous-memory
synced 2025-10-25 07:43:49 +02:00
travis (#2)
This commit is contained in:
58
.travis.yml
Normal file
58
.travis.yml
Normal file
@@ -0,0 +1,58 @@
|
||||
language: c
|
||||
dist: trusty
|
||||
addons:
|
||||
apt:
|
||||
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'
|
||||
key_url: 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
|
||||
packages:
|
||||
- nodejs
|
||||
- yarn
|
||||
- build-essential
|
||||
env:
|
||||
global:
|
||||
- GOV=1.9
|
||||
- GOPATH=$HOME/go
|
||||
- GOROOT=$HOME/$GOV/go
|
||||
- PATH=$GOROOT/bin:$PATH:$GOPATH/bin
|
||||
matrix:
|
||||
- V=4.3.0
|
||||
- V=4.3.1
|
||||
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
|
||||
- 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"
|
||||
script:
|
||||
- cd ~/go/src/github.com/mattermost/mattermost-webapp
|
||||
- make build -i
|
||||
- cd ~/go/src/github.com/mattermost/mattermost-server
|
||||
- patch -p1 < $TRAVIS_BUILD_DIR/make.patch
|
||||
- go get -d ./... || true
|
||||
- go list -f '{{ join .Deps "\n" }}' | xargs go get -d || true
|
||||
- make build-linux package
|
||||
after_failure:
|
||||
- cat /tmp/webapp.log
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key: "${GITHUB_OAUTH_TOKEN}"
|
||||
file: "~/go/src/github.com/mattermost/mattermost-server/dist/mattermost-*-linux-arm.tar.gz"
|
||||
file_glob: true
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
Reference in New Issue
Block a user