summaryrefslogtreecommitdiff
path: root/.gitlab/test.yml
blob: 2bf8880008de58668f726de6025a4fbe91165037 (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
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

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 "cd $LM_HOME && bundle install && bundle exec rspec spec/integration"