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
|
|
|
|
- shards
|
|
|
|
|
|
|
|
spec:
|
|
|
|
script:
|
|
|
|
- crystal spec
|
2019-04-06 23:19:02 +00:00
|
|
|
- bin/ameba
|
|
|
|
- crystal tool format --check
|
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:
|
|
|
|
- crystal spec
|
|
|
|
- crystal tool format --check
|
|
|
|
|
2019-04-03 03:38:36 +00:00
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
dependencies:
|
|
|
|
- spec
|
|
|
|
script:
|
|
|
|
- crystal docs
|
|
|
|
- mv docs/ public/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
|
|
|
- master
|