2018-06-07 04:02:00 +08:00
|
|
|
os: linux
|
|
|
|
services: docker
|
|
|
|
language: minimal
|
|
|
|
install: skip
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- docker-ce
|
2018-08-06 07:37:16 +08:00
|
|
|
- pass
|
2018-06-07 04:02:00 +08:00
|
|
|
env:
|
|
|
|
global:
|
2018-07-01 12:35:53 +08:00
|
|
|
- USE_DOCKER="true"
|
|
|
|
stages:
|
2018-08-06 07:37:16 +08:00
|
|
|
- lint
|
2019-01-06 06:44:33 +08:00
|
|
|
- build
|
2018-08-06 07:37:16 +08:00
|
|
|
- release
|
2018-07-01 12:35:53 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
2019-01-06 06:44:33 +08:00
|
|
|
- http/rice-box.go
|
2018-07-01 12:35:53 +08:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: lint
|
2019-01-06 06:44:33 +08:00
|
|
|
script: ./wizard.sh -l
|
|
|
|
- stage: build
|
|
|
|
script: ./wizard.sh -b
|
2018-07-01 12:35:53 +08:00
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
skip_cleanup: true
|
2019-01-06 06:44:33 +08:00
|
|
|
script: ./wizard.sh -p
|
2018-07-01 12:35:53 +08:00
|
|
|
on:
|
|
|
|
tags: false
|
2018-08-05 18:13:25 +08:00
|
|
|
repo: filebrowser/filebrowser
|
2018-07-01 12:35:53 +08:00
|
|
|
branch: master
|
|
|
|
- stage: release
|
2019-01-09 06:54:13 +08:00
|
|
|
script: ./wizard.sh -r "$TRAVIS_TAG"
|
2018-07-01 12:35:53 +08:00
|
|
|
if: tag IS present
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
2018-08-16 11:55:03 +08:00
|
|
|
skip_cleanup: true
|
2018-07-01 12:35:53 +08:00
|
|
|
api_key:
|
2018-08-06 10:50:16 +08:00
|
|
|
secure: GCURbl9xmjOmeNc7cYSvfSwbEp46cacWmJRczcsU6rQa0aWqzjELYdyIsl6HWW+o0dzuZvbWRD6muxYqIud92oPLYDuXSnra9tM3mCjswrjiPCJ57bksWkSPBfFQcxIyB6c3o+A/FMnX3nnSE/2r5HYZnPNFbEcBbC7WSgwx9ejXUuyWn1PUFK9YQWANdl6J7b7EKsk+9MxS9Pmw6M2ycBwX8ScUQdofkUPvR/nqlXISm+3hs30VubqQi9Ha6DM9Bw3aFK3/Ts/ujCOxP1ZoMCBZ6tfnaQOElIG96WTwnt77eDYlZezBOLym3Z18iif+Qny+XndFKDbexaiUT06VlWFXCKtt3iLs6HJwRcjmiHmB0Z3v+W4cKPl3cEyxxrU2aal54k1PBhU+5L0Xc8ileKbDMYg5tps88zWHNefeZVfaxYSVrmUHkuygMe481oaBLacDXTxs4t6XEpStREuLmvx9NLTwTFAbWjMNM0PqlueDMxO4bdwNvzXg/TcKLWV9FezqAlre8lFNZK5wX6lKFVSZ3hFjxCfwrJL2cPwg5A8Yd5EOC4Nh81WdgYuFGOxZzMAoSJlaVRvQS1trCUP/++ONnDep3ExSxvw4B7vijGZWeXUhrOMiPQHXu+t6BnrlnDjQ4gi44QTW0y/iM2WC2DBKfgYjAKwyHx13hFrmOCg=
|
2018-08-06 10:34:10 +08:00
|
|
|
file: "dist/*.*"
|
2018-07-01 12:35:53 +08:00
|
|
|
file_glob: true
|
|
|
|
on:
|
2018-08-05 18:13:25 +08:00
|
|
|
repo: filebrowser/filebrowser
|
2018-08-16 11:55:03 +08:00
|
|
|
all_branches: true
|
|
|
|
tags: true
|