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:
script:
- shards
- crystal spec --error-on-warnings --junit_output=.
- crystal spec --error-on-warnings --junit_output=. spec/runtime_example_spec.cr spec/matchers/ spec/spectator/*.cr
artifacts:
when: always
paths:
@ -22,6 +21,36 @@ spec:
reports:
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:
script:
- shards