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

Commit

Permalink
Added Travis config and Goreleaser for Automation
Browse files Browse the repository at this point in the history
  • Loading branch information
athul committed Jan 29, 2020
1 parent 4267ca9 commit 4056eef
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# you may remove this if you don't use vgo
- go mod tidy
# you may remove this if you don't need go generate
- go get -v
builds:
-

env:
- CGO_ENABLED=0
ldflags:
- -s -w
goos:
- darwin
- linux
- windows
goarch:
- 386
- amd64
ignore:
- goos: darwin
goarch: 386
archives:
- replacements:
darwin: Darwin
linux: Linux
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: athul
name: pwcli
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
sudo: false
language: go

go:
- "1.13"
before_script:
- go get -v
- go build
- ./pwcli
#
# before we deploy, we go build for all operating systems we would like to support
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true

after_script:
- curl https://raw.githubusercontent.com/athul/autom/master/tg_notification.sh > tg_notifier.sh
- bash tg_notifier.sh

0 comments on commit 4056eef

Please sign in to comment.