go.ligato.io/vpp-agent/v3@v3.5.0/.travis.yml (about)

     1  ---
     2  os: linux
     3  dist: xenial
     4  sudo: required
     5  
     6  language: go
     7  go:
     8    - 1.x
     9  
    10  go_import_path: go.ligato.io/vpp-agent/v3
    11  
    12  services:
    13    - docker
    14  
    15  git:
    16    depth: 5
    17    submodules: false
    18  
    19  cache:
    20    directories:
    21      - ${HOME}/.cache
    22      - ${HOME}/gopath/pkg/mod
    23  
    24  install: true
    25  
    26  stages:
    27    - Test
    28    - Build&Test
    29    - Integration
    30    - name: E2E
    31      if: ( type = push AND branch IN (master, dev) ) OR ( type IN (cron, api) ) OR ( commit_message =~ /^(test-e2e)/ )
    32  
    33  jobs:
    34    include:
    35      - stage: Build&Test
    36        name: "Build"
    37        script:
    38          - make cmd
    39          - make examples
    40      - name: "Code linter"
    41        script: make lint || true
    42      - name: "Unit tests"
    43        before_script:
    44          - go get github.com/mattn/goveralls
    45        script: make test-cover
    46        after_success:
    47          - goveralls -coverprofile=/tmp/coverage.out -service=travis-ci
    48          - bash <(curl -s https://codecov.io/bash) -f /tmp/coverage.out -F unittests
    49  
    50      - env: VPP_VERSION=2001
    51        script:
    52          - make verify-binapi
    53          - make integration-tests
    54      - env: VPP_VERSION=2005
    55        script:
    56          - make verify-binapi
    57          - make integration-tests
    58      - env: VPP_VERSION=2009
    59        script:
    60          - make verify-binapi
    61          - make integration-tests
    62      - env: VPP_VERSION=2101
    63        script:
    64          - make verify-binapi
    65          - make integration-tests
    66      - env: VPP_VERSION=2106
    67        script:
    68          - make verify-binapi
    69          - make integration-tests
    70  
    71      - env: VPP_VERSION=2001
    72        script:
    73          - make e2e-tests-cover
    74        after_success:
    75          - bash <(curl -s https://codecov.io/bash) -f /tmp/e2e-cov.out -F e2e
    76      - env: VPP_VERSION=2005
    77        script:
    78          - make e2e-tests-cover
    79        after_success:
    80          - bash <(curl -s https://codecov.io/bash) -f /tmp/e2e-cov.out -F e2e
    81      - env: VPP_VERSION=2009
    82        script:
    83          - make e2e-tests-cover
    84        after_success:
    85          - bash <(curl -s https://codecov.io/bash) -f /tmp/e2e-cov.out -F e2e
    86      - env: VPP_VERSION=2101
    87        script:
    88          - make e2e-tests-cover
    89        after_success:
    90          - bash <(curl -s https://codecov.io/bash) -f /tmp/e2e-cov.out -F e2e
    91      - env: VPP_VERSION=2106
    92        script:
    93          - make e2e-tests-cover
    94        after_success:
    95          - bash <(curl -s https://codecov.io/bash) -f /tmp/e2e-cov.out -F e2e
    96  
    97  #  allow_failures:
    98  #    - env: VPP_VERSION=2009
    99  
   100  notifications:
   101    slack:
   102      rooms:
   103        - ligato:xLH4aTwGx1dexPaloAegQ74O
   104      on_success: change
   105      on_failure: always
   106      template:
   107        - "Build <%{build_url}|#%{build_number}> of *%{repository_slug}* on branch _%{branch}_ in PR: <%{pull_request_url}|#%{pull_request_number}>"
   108        - "> `%{commit_subject}` _by %{author}_ (<%{compare_url}|%{commit}>)"
   109        - "*%{message}* (_%{duration}_)"