forked from src-d/gitbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
81 lines (66 loc) · 1.85 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
language: go
go_import_path: github.com/src-d/gitbase
env:
- GO111MODULE=on
matrix:
fast_finish: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- libonig-dev
before_install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 90
before_script:
- docker run -d --name bblfshd --privileged -p 9432:9432 bblfsh/bblfshd:v2.14.0-drivers
- docker exec -it bblfshd bblfshctl driver list
- go get -v github.com/go-sql-driver/mysql/...
- go get gopkg.in/src-d/go-git-fixtures.v3/...
script:
- make test-coverage codecov
- make ci-e2e
jobs:
include:
- go: 1.11.x
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
- go: 1.11.x
os: osx
osx_image: xcode9.3
before_install:
- echo "skipping before_install for macOS"
before_script:
- echo "skipping before_script for macOS"
script:
- brew update
- brew install oniguruma
- 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