.gitlab-ci.yml 504 Bytes
Newer Older
1
image: gradle:4.6-jdk8-alpine
2

3 4 5 6 7 8
variables:
  # Set the location of the dependency cache to a local directory, so that it
  # can be cached between GitLab Continous Integration Jobs.
  GRADLE_USER_HOME: '.gradle'

cache:
Eric Bruneton's avatar
Eric Bruneton committed
9
  paths:
10
    # Cache the downloaded dependencies and plugins between builds.
Eric Bruneton's avatar
Eric Bruneton committed
11
    - '$GRADLE_USER_HOME'
12

13 14
build:
  script:
15 16 17 18
    - gradle build
    - gradle test jacocoTestCoverageVerification
    - gradle uploadArchives
    - 'gradle sonarqube -Dsonar.host.url=https://sonarqube.ow2.org'