2020-04-03 22:27:49 +00:00
|
|
|
if: tag != develop_latest # dont build for the latest_develop tagged version
|
|
|
|
|
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
|
2019-02-14 20:06:37 +00:00
|
|
|
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
|
2020-04-02 21:46:23 +00:00
|
|
|
- nvm install 12
|
|
|
|
- travis_retry yarn --cwd ui/v2.5 install --frozen-lockfile
|
2019-10-10 15:13:14 +00:00
|
|
|
- make generate
|
2020-04-02 21:46:23 +00:00
|
|
|
- CI=false yarn --cwd ui/v2.5 build # TODO: Fix warnings
|
2019-03-05 21:14:00 +00:00
|
|
|
#- go get -v github.com/mgechev/revive
|
2019-02-14 20:06:37 +00:00
|
|
|
script:
|
2019-03-05 21:14:00 +00:00
|
|
|
#- make lint
|
|
|
|
#- make vet
|
2019-11-25 02:10:16 +00:00
|
|
|
- make it
|
2019-11-27 18:17:32 +00:00
|
|
|
after_success:
|
2019-11-19 13:59:23 +00:00
|
|
|
- docker pull stashapp/compiler:develop
|
2020-02-06 19:39:08 +00:00
|
|
|
- sh ./scripts/cross-compile.sh
|
2019-11-27 18:17:32 +00:00
|
|
|
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sh ./scripts/upload-pull-request.sh; fi'
|
|
|
|
before_deploy:
|
2020-02-06 19:39:08 +00:00
|
|
|
# push the latest tag when on the develop branch
|
|
|
|
- if [ "$TRAVIS_BRANCH" = "develop" ]; then git tag -f latest_develop; git push -f --tags; fi
|
2019-03-26 16:45:08 +00:00
|
|
|
- export RELEASE_DATE=$(date +'%Y-%m-%d %H:%M:%S %Z')
|
2020-02-06 19:39:08 +00:00
|
|
|
- export STASH_VERSION=$(git describe --tags --exclude latest_develop)
|
|
|
|
# set TRAVIS_TAG explcitly to the version so that it doesn't pick up latest_develop
|
|
|
|
- if [ "$TRAVIS_BRANCH" = "master"]; then export TRAVIS_TAG=${STASH_VERSION}; fi
|
2019-02-10 12:16:29 +00:00
|
|
|
deploy:
|
2020-02-06 19:39:08 +00:00
|
|
|
# latest develop release
|
|
|
|
- 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
|
|
|
|
skip_cleanup: true
|
|
|
|
overwrite: true
|
|
|
|
name: "${STASH_VERSION}: Latest development build"
|
|
|
|
body: ${RELEASE_DATE}\n This is always the latest committed version on the develop branch. Use as your own risk!
|
|
|
|
prerelease: true
|
|
|
|
on:
|
|
|
|
repo: stashapp/stash
|
2020-02-06 19:57:44 +00:00
|
|
|
branch: develop
|
2020-02-06 19:39:08 +00:00
|
|
|
# official master release - only build when tagged
|
|
|
|
- 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
|
|
|
|
# make the release a draft so the maintainers can confirm before releasing
|
|
|
|
draft: true
|
|
|
|
skip_cleanup: true
|
|
|
|
overwrite: true
|
|
|
|
# don't write the body. To be done manually for now. In future we might
|
|
|
|
# want to generate the changelog or get it from a file
|
|
|
|
name: ${STASH_VERSION}
|
|
|
|
on:
|
|
|
|
repo: stashapp/stash
|
|
|
|
tags: true
|
|
|
|
# make sure we don't release using the latest_develop tag
|
|
|
|
condition: $TRAVIS_TAG != latest_develop
|