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/Scala.gitlab-ci.yml
|
|
|
|
|
2020-05-12 12:09:47 +00:00
|
|
|
# Official OpenJDK Java image. Look for the different tagged releases at
|
|
|
|
# https://hub.docker.com/_/openjdk/ . A Java image is not required
|
2016-07-06 08:17:31 +00:00
|
|
|
# but an image with a JVM speeds up the build a bit.
|
2020-05-12 12:09:47 +00:00
|
|
|
image: openjdk:8
|
2016-07-06 08:17:31 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
# Enable the usage of sources over https
|
|
|
|
- apt-get update -yqq
|
|
|
|
- apt-get install apt-transport-https -yqq
|
|
|
|
# Add keyserver for SBT
|
2021-11-18 12:13:46 +00:00
|
|
|
- echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
|
|
|
|
- mkdir -p /root/.gnupg
|
|
|
|
- gpg --recv-keys --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --keyserver hkp://keyserver.ubuntu.com:80 2EE0EA64E40A89B84B2DF73499E82A75642AC823
|
|
|
|
- chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg
|
2016-07-06 08:17:31 +00:00
|
|
|
# Install SBT
|
|
|
|
- apt-get update -yqq
|
|
|
|
- apt-get install sbt -yqq
|
|
|
|
# Log the sbt version
|
2020-05-12 12:09:47 +00:00
|
|
|
- sbt sbtVersion
|
2016-07-06 08:17:31 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
script:
|
|
|
|
# Execute your project's tests
|
|
|
|
- sbt clean test
|
2022-10-06 21:09:01 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
script: echo "Define your deployment script!"
|
|
|
|
environment: production
|