shard-spectator/.gitlab-ci.yml

90 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2018-10-19 20:00:08 +00:00
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/crystallang/crystal/
image: "crystallang/crystal:latest"
# Cache shards in between builds
cache:
paths:
- lib
2019-04-07 01:01:02 +00:00
- bin
2018-10-19 20:00:08 +00:00
before_script:
- crystal -v # Print out Crystal version for debugging
spec:
script:
- crystal spec --error-on-warnings --junit_output=. spec/matchers/ spec/spectator/*.cr
2021-02-10 01:31:41 +00:00
artifacts:
when: always
paths:
- output.xml
reports:
junit: output.xml
2020-01-21 03:31:47 +00:00
2022-05-25 23:18:08 +00:00
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:
2022-05-25 23:27:02 +00:00
- crystal spec --error-on-warnings --junit_output=. spec/spectator/mocks/
2022-05-25 23:18:08 +00:00
2021-01-31 02:00:05 +00:00
format:
script:
- shards
- crystal tool format --check
2020-01-21 03:31:47 +00:00
style:
script:
- shards
- bin/ameba
2019-04-03 03:38:36 +00:00
2019-09-24 02:58:47 +00:00
nightly:
image: "crystallang/crystal:nightly"
allow_failure: true
script:
- shards --ignore-crystal-version
2022-05-25 23:20:57 +00:00
- crystal spec --error-on-warnings --junit_output=. --tag smoke spec/spectator/dsl/
- crystal tool format --check
2021-02-10 01:31:41 +00:00
artifacts:
when: always
paths:
- output.xml
reports:
junit: output.xml
2019-09-24 02:58:47 +00:00
2019-04-03 03:38:36 +00:00
pages:
stage: deploy
dependencies:
- spec
script:
- crystal docs
- mv docs/ public/
artifacts:
paths:
- public
only:
- master