Skip to content

Commit

Permalink
添加travis-ci配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
freshcn committed Feb 18, 2017
1 parent 5589073 commit 10ec675
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
language: go

go:
- 1.6.x
- 1.7.x
- 1.8.x

before_install:
- go get github.com/mitchellh/gox
- go get

install:
- gox -osarch=darwin/386
- gox -osarch=darwin/amd64
- gox -osarch=linux/amd64
- gox -osarch=linux/386
- gox -osarch=windows/amd64
- gox -osarch=windows/386

script:
- ls -l|grep go-id-builder

deploy:
provider: releases
api_key: "$GH_TOKEN"
file:
- go-id-builder_darwin_386
- go-id-builder_darwin_amd64
- go-id-builder_linux_386
- go-id-builder_linux_amd64
- go-id-builder_windows_386.exe
- go-id-builder_windows_amd64.exe
skip_cleanup: true
on:
condition: $TRAVIS_GO_VERSION =~ ^1\.7\.[0-9]+$
tags: true

0 comments on commit 10ec675

Please sign in to comment.