-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
32 lines (28 loc) · 924 Bytes
/
.gitlab-ci.yml
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
# Source: https://docs.gitlab.com/ee/ci/examples/test-scala-application.html
# This file is a template, and might need editing before it works on your project.
# Official images to be found on https://hub.docker.com/u/library/?page=2
# For instance:
# - https://hub.docker.com/_/java/ - Official Java image
# - https://hub.docker.com/_/centos/ - Official CentOS image
#image: library/centos:7
image: java:8
stages:
- test
- publish
before_script:
- apt-get update -y
- apt-get install apt-transport-https -y
## Install SBT
- echo "deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
- apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
- apt-get update -y
- apt-get install sbt -y
- sbt sbt-version
test:
stage: test
script:
- sbt clean compile test
publish:
stage: publish
script:
- sbt clean compile package publish-m2 publish-local