Skip to content

Commit

Permalink
add appveyor goreleaser and travis
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyaoi committed Sep 12, 2018
1 parent ba5aecd commit e54f225
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
language: go

addons:
apt:
packages:
# needed for the nfpm pipe:
- rpm
# needed for the snap pipe:
- snapd

env:
# needed for the snap pipe:
- PATH=/snap/bin:$PATH

script:
- go test -race -v ./...

go: '1.10.3'

matrix:
allow_failures:
- go: tip

install:
- sudo snap install snapcraft --classic
- go get github.com/unarxiv/cvpm/cli

services:
- docker

deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
11 changes: 11 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 0.{build}
skip_tags: true
cache: C:\Users\appveyor\AppData\Local\NuGet\Cache
build_script:
- SET GOPATH=c:\workspace
- go test -v -race ./...
test: off
clone_folder: c:\workspace\src\github.com\unarxiv\cvpm\cli
branches:
only:
- master
20 changes: 20 additions & 0 deletions goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
builds:
- env:
- CGO_ENABLED=0
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit e54f225

Please sign in to comment.