Compile build artifacts on java 8 image

This commit is contained in:
LeshaInc 2019-01-09 15:06:35 +02:00
parent 1dc4706ba6
commit 516f9e1ee4
No known key found for this signature in database
GPG Key ID: B4855290FC36DE72

View File

@ -1,4 +1,4 @@
image: "hseeberger/scala-sbt" image: java:8
variables: variables:
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
@ -9,11 +9,26 @@ cache:
key: "$CI_BUILD_REF_NAME" key: "$CI_BUILD_REF_NAME"
untracked: true untracked: true
paths: paths:
- "apt-cache/"
- "sbt-cache/.ivy.cache" - "sbt-cache/.ivy.cache"
- "sbt-cache/.boot" - "sbt-cache/.boot"
- "sbt-cache/.sbtboot" - "sbt-cache/.sbtboot"
- "sbt-cache/target" - "sbt-cache/target"
before_script:
- export APT_CACHE_DIR=`pwd`/apt-cache
- mkdir -pv $APT_CACHE_DIR
- ls $APT_CACHE_DIR || echo "no apt-cache dir found"
- apt-get -o dir::cache::archives=$APT_CACHE_DIR update -y
- apt-get -o dir::cache::archives=$APT_CACHE_DIR install apt-transport-https -y
- mkdir -pv $SBT_CACHE_DIR
- ls $SBT_CACHE_DIR || echo "no ivy2 cache fir found"
- 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 -o dir::cache::archives=$APT_CACHE_DIR update -y
- apt-get -o dir::cache::archives=$APT_CACHE_DIR install sbt -y
- sbt -v sbtVersion
build: build:
stage: build stage: build
script: script: