Split spec into multiple jobs

This commit is contained in:
Michael Miller 2022-05-25 17:18:08 -06:00
parent d0e5f6ca35
commit ce7feb8f0f
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF

View file

@ -13,8 +13,7 @@ before_script:
spec: spec:
script: script:
- shards - crystal spec --error-on-warnings --junit_output=. spec/runtime_example_spec.cr spec/matchers/ spec/spectator/*.cr
- crystal spec --error-on-warnings --junit_output=.
artifacts: artifacts:
when: always when: always
paths: paths:
@ -22,6 +21,36 @@ spec:
reports: reports:
junit: output.xml junit: output.xml
spec docs:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/docs/
spec features:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/features/
spec regression:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/issues/
spec rspec:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/rspec/
spec dsl:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/spectator/dsl/
spec mocks:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/mocks/
format: format:
script: script:
- shards - shards