Skip to content

Commit

Permalink
Merge pull request #878 from alexadhy/travis-release-on-tag
Browse files Browse the repository at this point in the history
travis: added auto deploy release on tag
  • Loading branch information
jdknives authored Sep 9, 2021
2 parents e93810e + 88baaa8 commit ffd242b
Showing 1 changed file with 7 additions and 13 deletions.
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

0 comments on commit ffd242b

Please sign in to comment.