mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2025-12-20 02:59:19 +01:00
Compile build artifacts on java 8 image
This commit is contained in:
parent
1dc4706ba6
commit
516f9e1ee4
@ -1,4 +1,4 @@
|
||||
image: "hseeberger/scala-sbt"
|
||||
image: java:8
|
||||
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: normal
|
||||
@ -9,11 +9,26 @@ cache:
|
||||
key: "$CI_BUILD_REF_NAME"
|
||||
untracked: true
|
||||
paths:
|
||||
- "apt-cache/"
|
||||
- "sbt-cache/.ivy.cache"
|
||||
- "sbt-cache/.boot"
|
||||
- "sbt-cache/.sbtboot"
|
||||
- "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:
|
||||
stage: build
|
||||
script:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user