forked from src-d/engine-deprecated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (46 loc) · 990 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
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
dist: xenial
sudo: required
language: go
go_import_path: github.com/src-d/engine
go:
- 1.11.x
matrix:
fast_finish: true
services:
- docker
stages:
- name: tests
- name: release
if: tag IS present
jobs:
include:
- stage: tests
name: 'Unit Tests'
script:
- make packages
- make test-coverage
- name: 'Generated code'
script:
- GO111MODULE=on go mod tidy
- GO111MODULE=on go mod vendor
- make no-changes-in-commit
- make -C api proto
- make no-changes-in-commit
- stage: release
name: 'Release to GitHub and Docker Hub'
script:
- make packages
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: build/*.tar.gz
skip_cleanup: true
on:
all_branches: true
after_deploy:
- make docker-push-latest-release