summaryrefslogtreecommitdiff
path: root/.gitlab/test.yml
blob: 22147eb40f5d3261e07bb1f263366f3f4e5aa185 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
size:
  image: docker:stable
  stage: test
  allow_failure: true # temporary until we can shrink the image size.
  timeout: 3 minutes
  script:
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
    - docker pull $TMP_IMAGE
    - docker image ls $TMP_IMAGE
    - docker image inspect $TMP_IMAGE

lint:
  stage: test
  image: ruby:alpine
  script:
    - apk add build-base shellcheck
    - bin/setup
    - bin/lint

.rspec:
  stage: test
  script:
    - ./bin/test $RSPEC_DIR --format RspecJunitFormatter --out rspec.xml
  artifacts:
    paths:
      - rspec.xml
    reports:
      junit: rspec.xml

.integration:
  extends: .rspec
  image:
    name: $TMP_IMAGE
    entrypoint: [""]
  script:
    - bash -lc './bin/test $RSPEC_DIR --format RspecJunitFormatter --out rspec.xml'

unit:
  extends: .rspec
  variables:
    RSPEC_DIR: spec/unit

integration-dotnet:
  extends: .integration
  variables:
    RSPEC_DIR: spec/integration/dotnet

integration-go:
  extends: .integration
  variables:
    RSPEC_DIR: spec/integration/go

integration-java:
  extends: .integration
  variables:
    RSPEC_DIR: spec/integration/java

integration-js:
  extends: .integration
  variables:
    RSPEC_DIR: spec/integration/js

integration-php:
  extends: .integration
  variables:
    RSPEC_DIR: spec/integration/php

integration-python:
  extends: .integration
  variables:
    RSPEC_DIR: spec/integration/python

integration-ruby:
  extends: .integration
  variables:
    RSPEC_DIR: spec/integration/ruby