diff options
| author | Can Eldem <celdem@gitlab.com> | 2020-01-23 13:07:41 +0000 |
|---|---|---|
| committer | Can Eldem <celdem@gitlab.com> | 2020-01-23 13:07:41 +0000 |
| commit | 9d0efd773673d47e24fc1e5afa7ed0b514849463 (patch) | |
| tree | dd34fe326b95a90ac1fe046b2213cc76a1c71e0a /.gitlab/test.yml | |
| parent | 2074e7e5ea3012be6f3a72bd4af934a42b7202ca (diff) | |
| parent | 6d9f3615919425493ed460926fc1f050f6632fad (diff) | |
Merge branch 'split-gitlabci' into 'master'
Split test/release jobs into separate files
See merge request gitlab-org/security-products/license-management!106
Diffstat (limited to '.gitlab/test.yml')
| -rw-r--r-- | .gitlab/test.yml | 25 |
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" |
