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/Clojure.gitlab-ci.yml
|
|
|
|
|
2016-11-03 16:03:00 +00:00
|
|
|
# Based on openjdk:8, already includes lein
|
|
|
|
image: clojure:lein-2.7.0
|
|
|
|
# If you need to configure a database, add a `services` section here
|
2020-10-14 12:08:58 +00:00
|
|
|
# See https://docs.gitlab.com/ee/ci/services/postgres.html
|
2016-11-03 16:03:00 +00:00
|
|
|
# Make sure you configure the connection as well
|
|
|
|
|
|
|
|
before_script:
|
2019-03-07 13:57:16 +00:00
|
|
|
# If you need to install any external applications, like a
|
2016-11-03 16:03:00 +00:00
|
|
|
# postgres client, you may want to uncomment the line below:
|
2019-03-07 13:57:16 +00:00
|
|
|
#
|
2019-06-05 16:31:35 +00:00
|
|
|
# - apt-get update -y
|
2016-11-03 16:03:00 +00:00
|
|
|
#
|
|
|
|
# Retrieve project dependencies
|
|
|
|
# Do this on before_script since it'll be shared between both test and
|
|
|
|
# any production sections a user adds
|
|
|
|
- lein deps
|
|
|
|
|
|
|
|
test:
|
|
|
|
script:
|
2019-06-05 16:31:35 +00:00
|
|
|
# If you need to run any migrations or configure the database, this
|
|
|
|
# would be the point to do it.
|
|
|
|
- lein test
|
2022-10-14 09:09:13 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
script: echo "Define your deployment script!"
|
|
|
|
environment: production
|