diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..c84a04456 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..3e6ad47d3 --- /dev/null +++ b/appveyor.yml @@ -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 \ No newline at end of file diff --git a/goreleaser.yaml b/goreleaser.yaml new file mode 100644 index 000000000..a53e9a711 --- /dev/null +++ b/goreleaser.yaml @@ -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:' \ No newline at end of file