From 06c329e4fb9f0b762dd793cd649586eba70fd7b8 Mon Sep 17 00:00:00 2001 From: Jorin Vogel Date: Thu, 3 Sep 2020 18:13:33 +0200 Subject: [PATCH] Bring CI up to date --- .gitignore | 1 + .goreleaser.yml | 18 ++++++++++++------ .travis.yml | 16 +++++++++++----- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 4582bd3..f42dbb1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +bin dist .DS_Store \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index c0ddabb..fbccc79 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,6 @@ builds: + - env: + - CGO_ENABLED=0 - goos: - windows - darwin @@ -8,8 +10,11 @@ builds: - 386 - arm - arm64 -archive: - format_overrides: + ignore: + - goos: darwin + goarch: 386 +archives: +- format_overrides: - goos: windows format: zip name_template: "{{.Binary}}_{{.Version}}_{{.Os}}_{{.Arch}}" @@ -21,8 +26,8 @@ archive: darwin: mac linux: linux windows: windows -brew: - github: +brews: +- tap: owner: qvl name: homebrew-tap folder: Formula @@ -30,13 +35,14 @@ brew: description: Embarrassingly simple GitHub backup tool dependencies: - git -nfpm: - homepage: https://qvl.io/ghbackup +nfpms: +- homepage: https://qvl.io/ghbackup description: Embarrassingly simple GitHub backup tool maintainer: Jorin Vogel license: MIT vendor: qvl formats: - deb + - rpm dependencies: - git diff --git a/.travis.yml b/.travis.yml index c16eab1..c4a74d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,17 @@ language: go go_import_path: qvl.io/ghbackup go: - - '1.10' + - 1.14.2 os: - linux - osx -after_success: | - test "$TRAVIS_OS_NAME" = "linux" -a -n "$TRAVIS_TAG" \ - && go get github.com/goreleaser/goreleaser \ - && goreleaser +script: + - go test ./... + - curl -sfL https://git.io/goreleaser | sh -s -- check +deploy: +- provider: script + skip_cleanup: true + script: curl -sL https://git.io/goreleaser | bash + on: + tags: true + condition: $TRAVIS_OS_NAME = linux