-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
27 lines (22 loc) · 789 Bytes
/
Copy path.travis.yml
File metadata and controls
27 lines (22 loc) · 789 Bytes
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
language: go
go:
- 1.7.x
install:
- mkdir $GOPATH/bin
- curl https://glide.sh/get | sh
- glide install
script: go test -v $(glide nv)
before_deploy:
- go get github.com/mitchellh/gox
- gox -output "release/{{.Dir}}-${TRAVIS_TAG}-{{.OS}}-{{.Arch}}/{{.Dir}}" -os "darwin linux windows" -arch "amd64 386" -ldflags "-X main.Version=${TRAVIS_TAG}" ./cmd/json2yaml/
- gox -output "release/{{.Dir}}-${TRAVIS_TAG}-{{.OS}}-{{.Arch}}/{{.Dir}}" -os "darwin linux windows" -arch "amd64 386" -ldflags "-X main.Version=${TRAVIS_TAG}" ./cmd/yaml2json/
- cd release
- for file in $(find ./*/* -type f); do zip $(basename $(dirname $file)).zip $file; done
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: "*.zip"
overwrite: true
on:
tags: true