forked from stormcat24/protodep
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
35 lines (30 loc) · 1.38 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
language: go
go:
- '1.12'
before_script:
- sudo sysctl -w net.ipv4.ip_forward=1
services:
- docker
env:
global:
- GO111MODULE=on
- CGO_ENABLED=0
- GO_VERSION=1.12
- secure: "SB7DKQgTBoqU+Jfc83y4n/H2NES/PrGD+7UCYy69lXyK354WKWTxtvHrEkecga0UiJAI9v1diwZiu5YEiJ0nLuk5vh9Jq9I47n7Y5sTRECn3h2UhqnuoVTGeULOKtAuRHlAZ+JG1eC9MsqG7SpENnS7HMJepoNfZZ7WrSPNVOE5GFR7ErdhR/tBahWPbXuAbtjhKdS6/LEsoxWf3aJAF98UEbEOYR8kXkUcXtdF5C6UX4R+X+5C+mU/JHTHK9dEpJehz2XSSAxsTY9ORvKPuL+JF2M2SoC2yTntZ7TBBiWsuwqszG4f33qk4p8H87tZjoHJiJpnN4hJBw8hL18+SrFM7adU1QcmKK+/iNMU2HO5KilAPleFKXhUX356sGvk8pXoqZEGvAAtzNr+Fwqwtpe+Df+fYzimHp2a0wqaIq6kf66CGlDLv6hKy10nh36Y2Wh3KHEywrbJEurXEOomtvy5p4o88wpv5PD5Q1mZZP2HxCdzaKAbyk/4UJ0BElbVwkUW38s5McWGUZxCSlURc9xrRoCWo2Kx4mn+29GEer8JNIzFzR8k6Slh+K1tGrzuUiG0gl7dt0UY+Ij+NbBSTnMDg3A3XnAOajolYdqQstVlFxhXJ+7MgCyk24Ksm2uAv6Z1n94FgPWBP249Za/WORwkzyILlD8CZHULtn9qMB74="
script:
- go test ./...
- curl -sL https://git.io/goreleaser | bash -s -- --snapshot --skip-publish --rm-dist
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash -s -- --snapshot --skip-publish --rm-dist
on:
tags: false
branch: master
condition: $TRAVIS_OS_NAME = linux
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash -s -- --rm-dist
on:
tags: true
condition: $TRAVIS_OS_NAME = linux