debian-mirror-gitlab/lib/gitlab/ci/templates/Elixir.gitlab-ci.yml
2022-11-25 23:54:43 +05:30

31 lines
956 B
YAML

# 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.
#
# 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/Elixir.gitlab-ci.yml
image: elixir:latest
# Pick zero or more services to be used on all builds.
# Only needed when using a docker container to run your tests in.
# Check out: https://docs.gitlab.com/ee/ci/services/index.html
services:
- mysql:latest
- redis:latest
- postgres:latest
before_script:
- mix local.rebar --force
- mix local.hex --force
- mix deps.get
mix:
script:
- mix test
deploy:
stage: deploy
script: echo "Define your deployment script!"
environment: production