GoLang_Project/.travis.yml

39 lines
604 B
YAML

language: go
go:
- "1.14"
os:
- linux
git:
depth: 1
quiet: true
submodules: false
notifications:
email: true
env:
global:
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
- BRANCH="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
stages:
- name: Tests
jobs:
include:
- stage: "Tests"
name: "Makefile"
install: go mod download
script:
- make lint
- make unit-test-fast
- make unit-test-slow
- make integration-test
- make build
- make docker-build
if: (type = push) OR (type = pull_request)