-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 2.06 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: go
notifications:
email:
recipients:
install:
- go get github.com/mitchellh/gox
- go get -d -v -t ./...
script:
- go install -v ./...
- go test -v ./...
- "[ `gofmt -l *.go | wc -l` = 0 ]"
after_success:
- '[ "${TRAVIS_TAG}" != "" ] && gox -ldflags "-X github.com/dhrapson/sched-load/cmd.Version=`git
describe --tags` -X github.com/dhrapson/sched-load/cmd.BuildTime=`TZ=UTC date -u
''+%Y-%m-%dT%H:%M:%SZ''` -X github.com/dhrapson/sched-load/cmd.GitHash=`git rev-parse
HEAD`" -output "dist/{{.Dir}}-{{.OS}}-{{.Arch}}"'
deploy:
provider: releases
file_glob: true
api_key: "$GITHUB_TOKEN"
file: dist/*
skip_cleanup: true
on:
tags: true
env:
global:
- secure: iV0jZSJjhoN6GhsAEoXKokkmNNxkTAR/+9mTs0ZLYFJv8+inpouATky8xrkXcOZn3EHY5RmuQTsaNKb0c8kDHZsvKEEyLbxIjPVE06/xvV5/rcCEd71L5E65AFeY6LGury2o0gNpDJnA+vubxLAO/GH7yYVYXS1J1+OJAoMTcYo1ytFSwDCd5VfEO/ANmae+DKn17NfMHo+lFmKWfaPOElVDvnSC0Le+pmSI7TgV+jF104E4Z564hB61FKahj9TBYNajHWwuyL95aUQohCh8aDZyON/jeNZUXYtDtsgkswqOD4C8HFyQ6qWY3qZy6hBTeucw55YlpD8J2u5uz/n5ZIeEQs2mAj3dV1J/Ry7YHsGd7mR7VodCYnvzqfS+LOwk7gyvpxSb1H8mkSyWCsPn1Dpb6F2jj/3lu8c5kKj3h4Sw0TGaRWgdlfYX/Bm1pFqPAoU98TlM5jeKvR3GAmy5FwhLm3ARCLh1+mxuwa8pBTvz2e4uyhmQ5nYfcsEGTyKUj45VzC8neA9OzT8/EkklX/GE95JcVgTULjR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