summaryrefslogtreecommitdiff
path: root/.gitlab/test.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab/test.yml')
-rw-r--r--.gitlab/test.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.gitlab/test.yml b/.gitlab/test.yml
new file mode 100644
index 0000000..2bf8880
--- /dev/null
+++ b/.gitlab/test.yml
@@ -0,0 +1,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"