Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Bring CI up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
jorinvo committed Sep 3, 2020
1 parent a7aeb9f commit 06c329e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bin
dist
.DS_Store
18 changes: 12 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
builds:
- env:
- CGO_ENABLED=0
- goos:
- windows
- darwin
Expand All @@ -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}}"
Expand All @@ -21,22 +26,23 @@ archive:
darwin: mac
linux: linux
windows: windows
brew:
github:
brews:
- tap:
owner: qvl
name: homebrew-tap
folder: Formula
homepage: https://qvl.io/ghbackup
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 <[email protected]>
license: MIT
vendor: qvl
formats:
- deb
- rpm
dependencies:
- git
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 06c329e

Please sign in to comment.