-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
56 lines (48 loc) · 1.03 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
46
47
48
49
50
51
52
53
54
55
56
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
dist: xenial
sudo: required
language: go
go_import_path: github.com/src-d/sourced-ce
go:
- 1.13.x
env:
global:
- SOURCED_GITHUB_TOKEN=$GITHUB_TOKEN
matrix:
fast_finish: true
services:
- docker
stages:
- name: tests
- name: release
if: tag IS present
jobs:
include:
- stage: tests
name: 'Go Unit Tests'
script:
- make packages
- make test-coverage codecov
- stage: tests
name: 'Integration Tests Linux'
script:
# cannot use 'make test-integration' because 'make clean' fails with
# GO111MODULE, see https://github.com/golang/go/issues/31002
- make build
- make test-integration-no-build
- stage: release
name: 'Release to GitHub'
script:
- make packages
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file:
- build/*.tar.gz
skip_cleanup: true
on:
all_branches: true