github.com/dbernstein1/tyk@v2.9.0-beta9-dl-apic+incompatible/.travis.yml (about) 1 sudo: required 2 language: go 3 4 notifications: 5 on_success: never 6 on_failure: always 7 8 env: 9 global: 10 - TYK_LOGLEVEL=info 11 12 addons: 13 apt: 14 packages: 15 - python3.5 16 - python3-pip 17 - libluajit-5.1-dev 18 19 matrix: 20 include: 21 - go: 1.10.x 22 - go: 1.11.x 23 env: LATEST_GO=true # run linters and report coverage 24 25 26 services: 27 - redis-server 28 29 install: 30 - go get 31 - go install ./... 32 # As of 1.9, ./... no longer includes ./vendor/... 33 - go install ./vendor/{golang.org/x/tools/cmd/goimports,github.com/wadey/gocovmerge,github.com/mattn/goveralls} 34 - go get github.com/go-swagger/go-swagger/cmd/swagger 35 36 script: 37 - pip3 install setuptools 38 - sudo pip3 install google 39 - sudo pip3 install protobuf 40 ### Needed to convert the swagger 2.0 file to openapi 3.0 41 ### The swagger docs are actually written as per the 2.0 spec as there is no 42 ### support for openapi 3.0 in Go - at least for now. 43 ### https://github.com/nodesource/distributions/blob/master/README.md#debinstall 44 - curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash - 45 - sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install nodejs 46 - sudo npm install -g api-spec-converter --unsafe-perm=true --allow-root 47 - go build -tags 'coprocess python' 48 - go build -tags 'coprocess lua' 49 - go build -tags 'coprocess grpc' 50 - ./bin/ci-swagger.sh 51 - ./bin/ci-test.sh 52 - if [[ $LATEST_GO ]]; then goveralls -coverprofile=<(gocovmerge *.cov); fi 53 - ./bin/ci-benchmark.sh