stash/.travis.yml

48 lines
1.7 KiB
YAML
Raw Normal View History

2019-03-15 23:11:06 +00:00
dist: xenial
2019-02-10 12:16:29 +00:00
language: go
go:
- 1.11.x
services:
- docker
env:
global:
- GO111MODULE=on
2019-02-10 12:16:29 +00:00
before_install:
- echo -e "machine github.com\n login $CI_USER_TOKEN" > ~/.netrc
- travis_retry yarn --cwd ui/v2 install
2019-10-10 15:13:14 +00:00
- make generate
- CI=false yarn --cwd ui/v2 build # TODO: Fix warnings
#- go get -v github.com/mgechev/revive
script:
#- make lint
#- make vet
- go test -mod=vendor
2019-02-10 12:16:29 +00:00
before_deploy:
2019-11-18 01:23:32 +00:00
- if [ "$TRAVIS_BRANCH" = "develop"]; then export TAG_SUFFIX="_dev"; fi
- export STASH_VERSION="v0.0.0-alpha${TAG_SUFFIX}""
- docker pull stashappdev/compiler
- sh ./scripts/cross-compile.sh ${STASH_VERSION}
- git tag -f ${STASH_VERSION}
2019-02-10 12:16:29 +00:00
- git push -f --tags
- export RELEASE_DATE=$(date +'%Y-%m-%d %H:%M:%S %Z')
2019-02-10 12:16:29 +00:00
deploy:
provider: releases
api_key:
secure: tGJ2q62CfPdayid2qEtW2aGRhMgCl3lBXYYQqp3eH0vFgIIf6cs7IDX7YC/x3XKMEQ/iMLZmtCXZvSTqNrD6Sk7MSnt30GIs+4uxIZDnnd8mV5X3K4n4gjD+NAORc4DrQBvUGrYMKJsR5gtkH0nu6diWb1o1If7OiJEuCPRhrmQYcza7NUdABnA9Z2wn2RNUV9Ga33WUCqLMEU5GtNBlfQPiP/khCQrqn/ocR6wUjYut3J6YagzqH4wsfJi3glHyWtowcNIw1LZi5zFxHD/bRBT4Tln7yypkjWNq9eQILA6i6kRUGf7ggyTx26/k8n4tnu+QD0vVh4EcjlThpU/LGyUXzKrrxjRwaDZnM0oYxg5AfHcBuAiAdo0eWnV3lEWRfTJMIVb9MPf4qDmzR4RREfB5OXOxwq3ODeCcJE8sTIMD/wBPZrlqS/QrRpND2gn2X4snkVukN9t9F4CMTFMtVSzFV7TDJW5E5Lq6VEExulteQhs6kcK9NRPNAaLgRQAw7X9kVWfDtiGUP+fE2i8F9Bo8bm7sOT5O5VPMPykx3EgeNg1IqIgMTCsMlhMJT4xBJoQUgmd2wWyf3Ryw+P+sFgdb5Sd7+lFgJBjMUUoOxMxAOiEgdFvCXcr+/Udyz2RdtetU1/6VzXzLPcKOw0wubZeBkISqu7o9gpfdMP9Eq00=
file:
- dist/stash-osx
- dist/stash-win.exe
- dist/stash-linux
- dist/stash-pi
2019-02-10 12:16:29 +00:00
skip_cleanup: true
overwrite: true
body: ${RELEASE_DATE}
2019-02-10 12:16:29 +00:00
on:
repo: stashapp/stash
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(master|develop)$
2019-02-10 12:16:29 +00:00
branches:
2019-02-11 07:26:26 +00:00
only:
- master
2019-11-18 01:23:32 +00:00
- develop