gopkg.in/libvirt/libvirt-go-xml.v7@v7.4.0/.gitlab-ci.yml (about)

     1  
     2  stages:
     3    - prebuild
     4    - build
     5  
     6  # Check that all commits are signed-off for the DCO.
     7  # Skip on "libvirt" namespace, since we only need to run
     8  # this test on developer's personal forks from which
     9  # merge requests are submitted
    10  check-dco:
    11    stage: prebuild
    12    image: registry.gitlab.com/libvirt/libvirt-ci/check-dco:master
    13    script:
    14      - /check-dco
    15    except:
    16      variables:
    17        - $CI_PROJECT_NAMESPACE == 'libvirt'
    18  
    19  go-fmt:
    20    stage: prebuild
    21    image: registry.gitlab.com/libvirt/libvirt-ci/go-fmt:master
    22    script:
    23      - /go-fmt
    24    artifacts:
    25      paths:
    26        - go-fmt.patch
    27      expire_in: 1 week
    28      when: on_failure
    29  
    30  .go_build: &go_build
    31    stage: build
    32    script:
    33      - go test -timeout 10m -tags xmlroundtrip -v
    34  
    35  
    36  go_1_10:
    37    <<: *go_build
    38    image: golang:1.10
    39  
    40  go_1_11:
    41    <<: *go_build
    42    image: golang:1.11
    43  
    44  go_1_12:
    45    <<: *go_build
    46    image: golang:1.12
    47  
    48  go_1_13:
    49    <<: *go_build
    50    image: golang:1.13
    51  
    52  go_1_14:
    53    <<: *go_build
    54    image: golang:1.14