forked from hellofresh/klepto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (33 loc) · 914 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
sudo: required
language: go
go:
- "1.13"
- "1.14"
- "stable"
services:
- mysql
- postgresql
addons:
postgresql: "9.6"
env:
- TEST_POSTGRES="postgres://postgres@localhost:5432?sslmode=disable"
TEST_MYSQL="root@tcp(localhost:3306)/"
install:
- go get -u github.com/go-playground/overalls
- go get -u github.com/goreleaser/goreleaser
- make deps
script:
- make test
after_success:
- $GOPATH/bin/overalls -project=github.com/hellofresh/klepto -covermode=count
- if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then bash <(curl -s https://codecov.io/bash) -f overalls.coverprofile; fi
# calls goreleaser
deploy:
- provider: script
# run the clean up as tests install some extra-tools required for coverage and linting
skip_cleanup: false
script: curl -sL http://git.io/goreleaser | bash
on:
tags: true
# build only on stable go version
go: "stable"