-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
59 lines (50 loc) · 919 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: go
os:
- linux
- osx
- windows
services:
- docker
env:
- GO111MODULE=on
go:
- 1.15.x
install:
- GO111MODULE=off go get -v github.com/codeclimate/test-reporter
- go get -u golang.org/x/lint/golint
before_script:
- test-reporter before-build
- |-
case $TRAVIS_OS_NAME in
windows)
choco install make zip
;;
esac
script:
- make test
- export DIST_NAME="ggft_${TRAVIS_OS_NAME}"
- |-
case $TRAVIS_OS_NAME in
linux)
make semgrep
;;
esac
- make dist
after_script:
- |-
case $TRAVIS_OS_NAME in
windows)
;;
*)
test-reporter after-build --coverage-input-type gocov --exit-code $TRAVIS_TEST_RESULT
;;
esac
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: "ggft*.zip"
file_glob: true
skip_cleanup: true
draft: true
on:
tags: true