-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
62 lines (54 loc) · 1.42 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
57
58
59
60
61
62
language: go
go_import_path: github.com/src-d/metdata-retrieval
go:
- 1.13.x
env:
global:
- PSQL_USER=user
- PSQL_PWD=password
- PSQL_DB=ghsync
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
stages:
- name: tests
- name: release
if: tag IS present
jobs:
include:
- stage: test
name: "Integration tests"
os: linux
services: docker
script:
# only linux supports docker https://docs.travis-ci.com/user/docker/ => tests with docker skipped programmatically ~ OS
- docker-compose up -d
- make ci-script
- stage: test
name: "Integration tests"
os: osx
script:
- make test-coverage
#- stage: test
# name: "Integration tests"
# os: windows
# script:
# - run-integration-tests.bat
# https://docs.travis-ci.com/user/best-practices-security#steps-travis-ci-takes-to-secure-your-data
# Remove because: The beta Windows support does not obfuscate secure environment variables leaked
# into the build log. Please keep reading the next section, on how to avoid leaking secrets to build
# logs
- 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