diff options
Diffstat (limited to '.gitlab')
| -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 |
