-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (44 loc) · 1.47 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
41
42
43
44
45
46
47
48
49
language: go
sudo: required
os:
- linux
go:
- 1.7
- 1.8
- 1.9
env:
- GO15VENDOREXPERIMENT="1"
before_install:
- go get github.com/mattn/goveralls
stages:
- Test
- Build
- Github Release
script:
- chmod u+x coverage.sh
- "./coverage.sh --coveralls"
jobs:
include:
- stage: Build
if: tag IS blank
go: 1.9
script:
- echo "Build apps ..."
- chmod u+x make.sh
- ./make.sh
- stage: Github Release
if: tag =~ ^v
go: 1.9
script:
- echo "Deploying to GitHub releases ..."
- chmod u+x make.sh
- ./make.sh
deploy:
provider: releases
file_glob: true
file: dist/*
api_key:
secure: PyyuRrm9ks8km0lD5ijjIks6Jn4a1r3XqtxyO4BtLoz5IvQWpBppcq+s09q/oH5UA/wVzCCOd9Nmom1goMGQJP4wmq5LB1VQK4vdL84tF4hX+gVi7fgwjYUILXNXF1QO6h+XmfJo0pHAOIDNN5/fqyKrwF6L7GsR5UvvfWKt3sYOK45U38qyZvuqp9d8DfCiC1GHm937umA/CmRB8126CSoknp1kMDRdOwzX2BNTCAv84ilo/Ich+E9tmtok7QwWxgIeilVJlh9YbLpENVFATtWKsz4wHO/EEMqaNHcVZeknFKwBeVdZLeq+B3dG3Lccpf/HS8UcCeO67aBfsAEn/VQjPUg4fIAXUHitpXwR7s+zJS/knPbBq6sma+MmJ5H24U6r8MehXkiRK1j8mwOrxsV3oXuJTiKheHlF6s1cYKgxj9sMXDsZalcZ773WQ37vSXRSdan2uvQeOpgO/YigDFedU56ONBjUAWo+e4jkiEfnv1yx8AzLblvYr77+izZAv395u/pCliQotevsYIMNs253cnlA/MDFvzznhjAJ9cVhzn8CwWq/cnXnuU/mNpN/7cpytsoGVQ7cddWPNNtik/XxaSQng5Bhtdtsq2hI1eSIRCmpeNHtNgMUvNqMVRAtlnI1f1Mo/X6jN3XcMUOQTG2a2AxTQOM2YvaMq0K0rt4=
skip_cleanup: true
on:
tags: true