diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-08 22:40:01 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-08 22:40:01 +1000 |
commit | 00c679a3f04df5378d46fb57b9abbdd374c93680 (patch) | |
tree | 9cf78adc3a9c1e789068ce40e8936018638fb103 | |
parent | d9ec6f98901ea700585c7f7c7ca96d463307a6ab (diff) |
swap travis for goreleaser
-rw-r--r-- | .goreleaser.yml | 22 | ||||
-rw-r--r-- | .travis.yml | 39 |
2 files changed, 22 insertions, 39 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 000000000..41c2806ed --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,22 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +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:' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6148884d3..000000000 --- a/.travis.yml +++ /dev/null @@ -1,39 +0,0 @@ -language: go -sudo: false -env: - - DEP_VERSION="0.5.0" -matrix: - include: - - go: 1.x - env: LATEST=true - - go: tip - allow_failures: - - go: tip -before_install: - # Download the binary to bin folder in $GOPATH - # - curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-386 -o $GOPATH/bin/dep - - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - # Make the binary executable - - chmod +x $GOPATH/bin/dep - - ls $GOPATH/bin/ - - dep ensure - - go get github.com/mitchellh/gox -install: - - -script: -# - go get -v ./... -# - diff -u <(echo -n) <(gofmt -d .) # can't make gofmt ignore vendor directory -# - go vet $(go list ./... | grep -v /vendor/) - - if [ "${LATEST}" = "true" ]; then gox -ldflags "-X main.Rev=`git rev-parse --short HEAD` -X main.builddate=`date -u +%Y%m%d.%H%M%S` -X main.Version=${TRAVIS_TAG}" -verbose ./...; fi -deploy: - provider: releases - skip_cleanup: true - api_key: - secure: TnB8I+swjicHuGTXk3ncm1Aaa12eIJqWV/Lhcnbb01i39p6+fyn3vDMdWPcejt3R8gcJqv4wyP8UQVO9G1qkLppt6V/qAuY5x6nX0MgEa3t+8JLJnGYHZYsuIgan/ecAmeu5+6dgUhr9Oq6zQOEv/O88NsALzMlqnEQNXI8XSoScfhkiVDIp3zWov0vBizCdThnNgTx9zRpJVoqxmhWvgt+me2+fOhSx1Y+3ZA2gE7zq8IFAbxp36d0rsR5lKqmTuF+YsF9iQ7Ar+xCjbRunLsZx+VwGqGfpS/qS7EwsEqBI0vEO76eFJkwEsIzOvJiFNhBDUu3upquBFMT4uzxRxH3eV+J4mZtu29UDLdvKI5Q730Lk9AgmH4now+RmP08M0SEXJa+AnHeuBv2u1iU5bu+sI6CORVQzKQwOph9AABDjSZ54wrXIpYEeIW2sz8nx+hiG6QL1mqfM/l+55BR69u3vxKYMryQBxPuzhZCTOqqI4uahlb6GIUNZJ9vGZeIA9HFJq3ymW8cdrpYzhKf3Nx9jK+Yb81h5/AHq9iChXEC63VPCDXXGRllh2UYWNYCaAdtk+ekpLR8299e4CaEregy6g5U2S3/xrBKl87miu1uJ/fquXoxGdSU+JcmsmXZ26sGIU2TCYdNjSfIgpOyfMmB4JNtKHqWRHA9Fe42CRpA= - file_glob: true - file: - - lazygit_* - on: - repo: jesseduffield/lazygit - tags: true - condition: $LATEST = true |