github.com/Tyktechnologies/tyk@v2.9.5+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-pip
    16      - libluajit-5.1-dev
    17  
    18  matrix:
    19    include:
    20      - go: 1.12.x
    21        env: LATEST_GO=true # run linters and report coverage
    22  
    23  
    24  services:
    25    - redis-server
    26  
    27  install:
    28    - go get ./...
    29    - go install ./...
    30      # As of 1.9, ./... no longer includes ./vendor/...
    31    - go install ./vendor/{golang.org/x/tools/cmd/goimports,github.com/wadey/gocovmerge,github.com/mattn/goveralls}
    32    - go get github.com/go-swagger/go-swagger/cmd/swagger
    33  
    34  script:
    35    - pip3 install setuptools
    36    - sudo pip3 install google
    37    - sudo pip3 install protobuf
    38      ### Needed to convert the swagger 2.0 file to openapi 3.0
    39      ### The swagger docs are actually written as per the 2.0 spec as there is no
    40      ### support for openapi 3.0 in Go - at least for now.
    41      ### https://github.com/nodesource/distributions/blob/master/README.md#debinstall
    42    - curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
    43    - sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install nodejs
    44    - sudo npm install -g api-spec-converter --unsafe-perm=true --allow-root
    45    - go build -tags 'coprocess lua'
    46    - ./bin/ci-test.sh
    47    - if [[ $LATEST_GO ]]; then goveralls -coverprofile=<(gocovmerge *.cov); fi
    48    - ./bin/ci-benchmark.sh