forked from romnn/mongoimport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 1.84 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
dist: bionic
language: go
go:
- 1.13.x
- master
- tip
os:
- linux
- osx
env: MOD=github.com/romnnn/mongoimport/cmd/mongoimport BINARY=mongoimport
jobs:
allow_failures:
- go: tip
fast_finish: true
include:
- stage: deploy
name: Publish release
os: linux
go: master
before_script:
- go get github.com/mitchellh/gox
script:
- gox -os="linux darwin windows" -arch="amd64" -output="build/${BINARY}-${TRAVIS_TAG}-{{.OS}}-{{.Arch}}" -ldflags "-X main.Rev=`git rev-parse --short HEAD`" -verbose ${MOD}
deploy:
provider: releases
token:
secure: s2I0lwaJBucNYPtYQwDzhDM3OkoZjI4py6Wf1nnqiONeCoPCn/APe7nIoN1JGbERtFJtGmhfz1vgxntpy4wZ/x2Ofq+pFh0xSZRbLO3FlgFXArZ0KbldH/94hnCzrNOYuvK/3qIJlAHR0XBY7BgRTx0YrPRMKhvGfn0lMTh/epvzEtuh0A+kpu8R/d/fDOG4DYyMhcsOy7Jd4xLX0w2/+vGhKaq52bNwF9EIWhyods0V7pYPSFwqHRExCCJ5CxuxIAwm4ERnQxiIJLX4heHzdE1s3272RZndTl8QBudIf5sZPHtZ1Dhw8Q7IQMO8R5zmSS3M0BSPEnmmkOb1Tz5s8v3moZee9ft3jw5EGWfrt9TSaUWQg2bOoCup6ZqaJwzIpp3wm+l8CBbh6ModCJJB/K+Um21smRhq4RLTredxoWhbJtDXRMtWUnbtcgvpEy/y11Zq7J2e6Ma1HyVZd2JV1f1H1y3ka7BWHPasYmPYFFRMj1b3lXSL1+SRXF9HVNr3ear+4LRNKZeapLWBaElPLesEstPIyltErMgA0Ki22pT70PqCP6Mzw6ZqxvzZuJ1AgD13C+Z9WYK5NGrhbO03jhEveR9mFUMITs6Kpq1jK6pF5stR3mIDJXf3O7zgIFUAikAppv6kfSixE0hTojkDM3vac0lBLbVk3D6VeTSzGwM=
file_glob: true
file: build/*
skip_cleanup: true
on:
repo: romnnn/mongoimport
tags: true
install: true
notifications:
email: false
before_script:
- go get -u golang.org/x/lint/golint
- go get github.com/fzipp/gocyclo
script:
- pip install -U pip && pip install pre-commit && pre-commit run --all-files
- env GO111MODULE=on go build ${MOD}
- env GO111MODULE=on go test -v -race -coverprofile=coverage.txt -coverpkg=all -covermode=atomic ./...
after_success:
- bash <(curl -s https://codecov.io/bash)