summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/templates/Clojure.gitlab-ci.yml
blob: 3379ce2f6490c26c4854cad00d98c5b11fdd0677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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/Clojure.gitlab-ci.yml

# 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
# See https://docs.gitlab.com/ee/ci/services/postgres.html
# Make sure you configure the connection as well

before_script:
  # If you need to install any external applications, like a
  # postgres client, you may want to uncomment the line below:
  #
  # - apt-get update -y
  #
  # 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:
    # If you need to run any migrations or configure the database, this
    # would be the point to do it.
    - lein test

deploy:
  stage: deploy
  script: echo "Define your deployment script!"
  environment: production