2018-08-07 13:32:51 +02:00
|
|
|
language: go
|
2018-08-07 13:58:10 +02:00
|
|
|
sudo: false
|
2018-08-07 13:44:26 +02:00
|
|
|
env:
|
|
|
|
- DEP_VERSION="0.5.0"
|
2018-08-07 13:32:51 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-08-07 14:17:42 +02:00
|
|
|
# - go: 1.X
|
2018-08-07 14:14:30 +02:00
|
|
|
- go: 1.7
|
2018-08-07 14:17:42 +02:00
|
|
|
env: LATEST=true
|
2018-08-07 13:32:51 +02:00
|
|
|
- go: tip
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
2018-08-07 13:44:26 +02:00
|
|
|
before_install:
|
|
|
|
# Download the binary to bin folder in $GOPATH
|
2018-08-07 13:58:10 +02:00
|
|
|
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-386 -o $GOPATH/bin/dep
|
2018-08-07 13:44:26 +02:00
|
|
|
# Make the binary executable
|
|
|
|
- chmod +x $GOPATH/bin/dep
|
|
|
|
- dep ensure
|
2018-08-07 14:13:42 +02:00
|
|
|
- go get github.com/mitchellh/gox
|
2018-08-07 13:32:51 +02:00
|
|
|
install:
|
2018-08-07 13:44:26 +02:00
|
|
|
-
|
2018-08-07 13:32:51 +02:00
|
|
|
script:
|
2018-08-07 13:44:26 +02:00
|
|
|
# - go get -v ./...
|
2018-08-07 14:02:34 +02:00
|
|
|
# - diff -u <(echo -n) <(gofmt -d .) # can't make gofmt ignore vendor directory
|
|
|
|
# - go vet $(go list ./... | grep -v /vendor/)
|
2018-08-07 13:32:51 +02:00
|
|
|
- if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64" -output="lazygit.."
|
|
|
|
-ldflags "-X main.Rev=`git rev-parse --short HEAD`" -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:
|
|
|
|
- lazygit.windows.amd64.exe
|
|
|
|
- lazygit.darwin.amd64
|
|
|
|
- lazygit.linux.amd64
|
|
|
|
on:
|
|
|
|
repo: jesseduffield/lazygit
|
|
|
|
tags: true
|
|
|
|
condition: $LATEST = true
|