From 3f03025df5db673ec145d8a6a52f8bf23ef48982 Mon Sep 17 00:00:00 2001 From: Alexander Adhyatma Date: Thu, 9 Sep 2021 19:22:57 +0700 Subject: [PATCH 1/2] travis: added auto deploy release on tag --- .travis.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 42f2c3b1db..58f0086b8f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,15 +9,15 @@ dist: xenial services: - docker -addons: - apt: - packages: + #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 + #- binutils-mingw-w64-i686 + #- libsnmp-dev matrix: include: @@ -38,11 +38,11 @@ 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 @@ -55,4 +55,7 @@ deploy: on: branch: develop condition: $TRAVIS_PULL_REQUEST = false - + - provider: script + script: make github-release + on: + tags: true From 88baaa8501be0e1dd1a38be2fbe97435c018715e Mon Sep 17 00:00:00 2001 From: Alexander Adhyatma Date: Thu, 9 Sep 2021 19:33:13 +0700 Subject: [PATCH 2/2] travis: added goreleaser --- .travis.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 58f0086b8f..5f4f4bcf45 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -29,9 +19,10 @@ 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: