-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
40 lines (35 loc) · 1.08 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
30
31
32
33
34
35
36
37
38
39
40
language: go
go:
- 1.12.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
before_deploy:
- zip -q darwin_386.zip go-id-builder_darwin_386 README.md app.ini db.sql
- zip -q darwin_amd64.zip go-id-builder_darwin_amd64 README.md app.ini db.sql
- zip -q linux_386.zip go-id-builder_linux_386 README.md app.ini db.sql
- zip -q linux_amd64.zip go-id-builder_linux_amd64 README.md app.ini db.sql
- zip -q windows_386.zip go-id-builder_windows_386.exe README.md app.ini db.sql
- zip -q windows_amd64.zip go-id-builder_windows_amd64.exe README.md app.ini db.sql
deploy:
provider: releases
api_key: "$GH_TOKEN"
file:
- darwin_386.zip
- darwin_amd64.zip
- linux_386.zip
- linux_amd64.zip
- windows_386.zip
- windows_amd64.zip
skip_cleanup: true
on:
tags: true