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"