Skip to content

Commit

Permalink
Update travis to build release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
birkland committed Sep 17, 2019
1 parent 531ae9d commit eea54fb
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,26 @@ env:
- GO111MODULE=on

go:
- 1.12.x
- 1.13.x

os:
- linux
- osx
- windows

install: true

script:
- go build ./...
- go test -v -race ./...
- env GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ocfl-Linux-x86_64 ./cmd/ocfl
- env GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o ocfl-Darwin-x86_64 ./cmd/ocfl
- env GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o ocfl-Windows-x86_64.exe ./cmd/ocfl

deploy:
provider: releases
api_key: $DEPLOY_KEY
file:
- ocfl-Linux-x86_64
- ocfl-Darwin-x86_64
- ocfl-Windows-x86_64.exe
skip_cleanup: true
on:
tags: true

0 comments on commit eea54fb

Please sign in to comment.