forked from sotomskir/jira-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (32 loc) · 823 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
language: go
git:
quiet: true
before_install:
- go get -t -v ./...
- sudo curl -L "https://github.com/sotomskir/goops/releases/download/nightly/goops-$(uname -s)-$(uname -m)" -o /usr/local/bin/goops && sudo chmod +x /usr/local/bin/goops
- . <(goops setenv)
script:
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- go build
after_success:
- bash <(curl -s https://codecov.io/bash)
- ./tag-nightly.sh
before_deploy:
- go get github.com/inconshreveable/mousetrap
- go get github.com/konsorten/go-windows-terminal-sequences
- ./build.sh
deploy:
provider: releases
api_key: "$GH_TOKEN"
file_glob: true
file: bin/*
prerelease: true
overwrite: true
skip_cleanup: true
on:
tags: true
addons:
sonarcloud:
organization: "sotomskir-github"
token:
secure: "$SONAR_TOKEN"