Skip to content

Commit

Permalink
update Travis configuration (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
s4mur4i authored and igungor committed Jan 16, 2020
1 parent 5d139af commit 2ca872c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
33 changes: 13 additions & 20 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
# .goreleaser.yml
# Build customization
builds:
- env:
- CGO_ENABLED=0
- main: s5cmd.go
binary: s5cmd
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
# Archive customization
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:'
format: tar.gz
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- 1.8.3
- master

services:
- docker
Expand All @@ -10,7 +10,7 @@ script:
- true

after_success:
- test -n "$TRAVIS_TAG" && curl -s https://raw.githubusercontent.com/goreleaser/get/master/latest | bash
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
- CGO_ENABLED="0" GOARCH="amd64" GOOS="linux" go build -a -installsuffix cgo -o ./app
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- export REPO=peakcom/s5cmd
Expand All @@ -19,4 +19,4 @@ after_success:
- docker push $REPO:$TRAVIS_BRANCH
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_TAG ; fi`
- if [[ ! -z "${TAG}" ]]; then docker tag $REPO:$TRAVIS_BRANCH $REPO:$TAG; fi
- if [[ ! -z "${TAG}" ]]; then docker push $REPO:$TAG; fi
- if [[ ! -z "${TAG}" ]]; then docker push $REPO:$TAG; fi

0 comments on commit 2ca872c

Please sign in to comment.