Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis: added auto deploy release on tag #878

Merged
merged 2 commits into from
Sep 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ dist: xenial
services:
- docker

addons:
apt:
packages:
# For building MUSL static builds on Linux.
# - musl-tools
#- gcc-mingw-w64-i686
#- g++-mingw-w64-i686
#- binutils-mingw-w64-i686
#- libsnmp-dev

matrix:
include:
- os: linux
Expand All @@ -29,20 +19,21 @@ matrix:

before_install:
- nvm install 10.16
- curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.42.0

install:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.40.1
- make dep

before_script:
- ci_scripts/create-ip-aliases.sh

script:
- make build
- make check
- make install-deps-ui
- make lint-ui
- make build-ui
- make build

deploy:
- provider: script
Expand All @@ -55,4 +46,7 @@ deploy:
on:
branch: develop
condition: $TRAVIS_PULL_REQUEST = false

- provider: script
script: make github-release
on:
tags: true