summaryrefslogtreecommitdiff
path: root/.gitlab/test.yml
blob: 1d011becc8924c6a5aaf8fc0cf8ba758ed1c629d (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
size:
  image: docker:stable
  stage: test
  allow_failure: true # temporary until we can shrink the image size.
  timeout: 1 minute
  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: alpine:latest
  script:
    - apk add shellcheck
    - bin/lint

unit:
  stage: test
  script:
    - gem install bundler -v '~> 2.0'
    - bundle install
    - bundle exec rspec spec/unit

integration:
  image:
    name: $TMP_IMAGE
    entrypoint: [""]
  stage: test
  script:
    - bash -lc "bundle install && bundle exec rspec spec/integration"