.gitlab-ci.yml 1.22 KB
Newer Older
Dmitry Smirnov's avatar
Dmitry Smirnov committed
1 2 3 4
# This file is a template, and might need editing before it works on your project.
# This is the Gradle build system for JVM applications
# https://gradle.org/
# https://github.com/gradle/gradle
5
image: gradle:5.2.1-jdk8
Dmitry Smirnov's avatar
Dmitry Smirnov committed
6 7 8 9 10 11

# Disable the Gradle daemon for Continuous Integration servers as correctness
# is usually a priority over speed in CI environments. Using a fresh
# runtime for each build is more reliable since the runtime is completely
# isolated from any previous builds.
variables:
Dmitry Smirnov's avatar
Dmitry Smirnov committed
12
  GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
Dmitry Smirnov's avatar
Dmitry Smirnov committed
13 14

before_script:
15
  - export GRADLE_USER_HOME=`pwd`/.gradle
Dmitry Smirnov's avatar
Dmitry Smirnov committed
16 17
build:
  stage: build
18
  script: gradle --build-cache assemble
Dmitry Smirnov's avatar
Dmitry Smirnov committed
19 20 21 22
  cache:
    key: "$CI_COMMIT_REF_NAME"
    policy: push
    paths:
Dmitry Smirnov's avatar
Dmitry Smirnov committed
23 24
      - ./build
      - ./.gradle
Dmitry Smirnov's avatar
Dmitry Smirnov committed
25 26 27 28


test:
  stage: test
29 30 31
  script:
    - wget http://download.asperasoft.com/download/sw/cli/3.9.1/ibm-aspera-cli-3.9.1.1401.be67d47-linux-64-release.sh
    - sh ./ibm-aspera-cli-3.9.1.1401.be67d47-linux-64-release.sh
32
    - export PATH=/home/gradle/.aspera/cli/bin:$PATH
33
    - gradle test --info
Dmitry Smirnov's avatar
Dmitry Smirnov committed
34 35 36 37
  cache:
    key: "$CI_COMMIT_REF_NAME"
    policy: pull
    paths:
Dmitry Smirnov's avatar
Dmitry Smirnov committed
38 39
      - ./build
      - ./.gradle