forked from justjanne/powerline-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (25 loc) · 780 Bytes
/
.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
sudo: false
language: go
go:
- "1.12"
before_script:
- go get
# before we deploy, we go build for all operating systems we would like to support
before_deploy:
- mkdir -p release
- "GOOS=linux GOARCH=amd64 go build -o release/powerline-go-linux-amd64"
- "GOOS=darwin GOARCH=amd64 go build -o release/powerline-go-darwin-amd64"
# Windows doesn't work yet, due to the readonly segment
# - "GOOS=windows GOARCH=amd64 go build -o release/powerline-go-windows-amd64"
deploy:
provider: releases
api_key:
secure: "$GITHUB_API_KEY"
file:
- "release/powerline-go-linux-amd64"
- "release/powerline-go-darwin-amd64"
# Windows doesn't work yet, due to the readonly segment
# - "release/powerline-go-windows-amd64"
skip_cleanup: true
on:
tags: true