diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-20 22:25:22 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-20 22:25:22 -0600 |
| commit | 83ac7915f00d120f09db42ca60316dc745c73cc9 (patch) | |
| tree | 28fde141fdc7ab2ef6e3a5611d074785c0459d53 /.gitlab/test.yml | |
| parent | 685f2f5b80222d6b7079c59bfd5b1c5df0e0337e (diff) | |
Build minimal image
Diffstat (limited to '.gitlab/test.yml')
| -rw-r--r-- | .gitlab/test.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.gitlab/test.yml b/.gitlab/test.yml new file mode 100644 index 0000000..c7adf56 --- /dev/null +++ b/.gitlab/test.yml @@ -0,0 +1,36 @@ +lint: + stage: test + image: ruby:alpine + script: + - apk add build-base shellcheck + - bin/setup + - bin/lint + +.rspec: + stage: test + script: + - bash -lc './bin/test $RSPEC_DIR --format RspecJunitFormatter --out rspec.xml' + variables: + BUNDLE_JOBS: '2' + BUNDLE_PATH: 'vendor/bundle' + GIT_DEPTH: "1" + GIT_STRATEGY: fetch + cache: + key: ${CI_COMMIT_REF_SLUG} + paths: + - vendor + artifacts: + paths: + - rspec.xml + reports: + junit: rspec.xml + +unit: + extends: .rspec + variables: + RSPEC_DIR: spec/unit + +integration: + extends: .rspec + variables: + RSPEC_DIR: spec/integration |
