forked from TykTechnologies/tyk
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
52 lines (44 loc) · 1.46 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
sudo: required
language: go
notifications:
on_success: never
on_failure: always
env:
global:
- TYK_LOGLEVEL=info
addons:
apt:
packages:
- python3.5
- python3-pip
- libluajit-5.1-dev
matrix:
include:
- go: 1.10.x
- go: 1.11.x
env: LATEST_GO=true # run linters and report coverage
services:
- redis-server
install:
- go get
- go install ./...
# As of 1.9, ./... no longer includes ./vendor/...
- go install ./vendor/{golang.org/x/tools/cmd/goimports,github.com/wadey/gocovmerge,github.com/mattn/goveralls}
- go get github.com/go-swagger/go-swagger/cmd/swagger
script:
- sudo pip3 install google
- sudo pip3 install protobuf
### Needed to convert the swagger 2.0 file to openapi 3.0
### The swagger docs are actually written as per the 2.0 spec as there is no
### support for openapi 3.0 in Go - at least for now.
### https://github.com/nodesource/distributions/blob/master/README.md#debinstall
- curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install nodejs
- sudo npm install -g api-spec-converter --unsafe-perm=true --allow-root
- go build -tags 'coprocess python'
- go build -tags 'coprocess lua'
- go build -tags 'coprocess grpc'
- ./bin/ci-swagger.sh
- ./bin/ci-test.sh
- if [[ $LATEST_GO ]]; then goveralls -coverprofile=<(gocovmerge *.cov); fi
- ./bin/ci-benchmark.sh