-
Notifications
You must be signed in to change notification settings - Fork 123
/
.travis.yml
63 lines (50 loc) · 1.43 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
63
language: go
go_import_path: github.com/src-d/gitbase
go: 1.12.x
env:
- GO111MODULE=on GOPROXY=https://proxy.golang.org
matrix:
fast_finish: true
before_script:
- docker run -d --name bblfshd --privileged -p 9432:9432 bblfsh/bblfshd:v2.14.0-drivers
- docker exec -it bblfshd bblfshctl driver list
script:
- make test-coverage codecov
- make ci-e2e
jobs:
include:
- os: linux
sudo: required
dist: trusty
services: [docker]
before_deploy:
- make docker-push-latest-release
- make static-package
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: build/*linux_amd64.tar.gz
skip_cleanup: true
on:
tags: true
- os: osx
osx_image: xcode9.3
before_install:
- echo "skipping before_install for macOS"
before_script:
- echo "skipping before_script for macOS"
script:
- make packages || echo "" # will fail because of docker being missing
- if [ ! -f "build/gitbase_darwin_amd64/gitbase" ]; then echo "gitbase binary not generated" && exit 1; fi
- cd build
- tar -cvzf "gitbase_${TRAVIS_TAG}_darwin_amd64.tar.gz" gitbase_darwin_amd64
- cd ..
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: build/*darwin_amd64.tar.gz
skip_cleanup: true
on:
tags: true