2022-07-19 09:08:45 +00:00
|
|
|
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
|
|
|
|
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
|
|
|
|
#
|
2021-06-28 06:07:45 +00:00
|
|
|
# To contribute improvements to CI/CD templates, please follow the Development guide at:
|
|
|
|
# https://docs.gitlab.com/ee/development/cicd/templates.html
|
|
|
|
# This specific template is located at:
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Crystal.gitlab-ci.yml
|
|
|
|
|
2016-11-03 16:03:00 +00:00
|
|
|
# Official language image. Look for the different tagged releases at:
|
|
|
|
# https://hub.docker.com/r/crystallang/crystal/
|
|
|
|
image: "crystallang/crystal:latest"
|
|
|
|
|
|
|
|
# Pick zero or more services to be used on all builds.
|
|
|
|
# Only needed when using a docker container to run your tests in.
|
2022-05-26 03:09:21 +00:00
|
|
|
# Check out: https://docs.gitlab.com/ee/ci/services/index.html
|
2016-11-03 16:03:00 +00:00
|
|
|
# services:
|
|
|
|
# - mysql:latest
|
|
|
|
# - redis:latest
|
|
|
|
# - postgres:latest
|
|
|
|
|
|
|
|
# variables:
|
|
|
|
# POSTGRES_DB: database_name
|
|
|
|
|
|
|
|
# Cache shards in between builds
|
|
|
|
cache:
|
|
|
|
paths:
|
2017-11-10 10:27:58 +00:00
|
|
|
- lib
|
2016-11-03 16:03:00 +00:00
|
|
|
|
|
|
|
# This is a basic example for a shard or script which doesn't use
|
|
|
|
# services such as redis or postgres
|
|
|
|
before_script:
|
|
|
|
- apt-get update -qq && apt-get install -y -qq libxml2-dev
|
2019-06-05 16:31:35 +00:00
|
|
|
- crystal -v # Print out Crystal version for debugging
|
2016-11-03 16:03:00 +00:00
|
|
|
- shards
|
|
|
|
|
|
|
|
# If you are using built-in Crystal Spec.
|
|
|
|
spec:
|
|
|
|
script:
|
2019-06-05 16:31:35 +00:00
|
|
|
- crystal spec
|
2016-11-03 16:03:00 +00:00
|
|
|
|
|
|
|
# If you are using minitest.cr
|
|
|
|
minitest:
|
|
|
|
script:
|
2019-06-05 16:31:35 +00:00
|
|
|
- crystal test/spec_test.cr # change to the file(s) you execute for tests
|
2022-10-14 09:09:13 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
script: echo "Define your deployment script!"
|
|
|
|
environment: production
|