forked from davidmc24/gradle-avro-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
50 lines (43 loc) · 1.32 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.job_template: &job_definition
variables:
GRADLE_OPTS: "-Xmx386m -Xms386m"
script:
- echo PATH = ${PATH}
- echo JAVA_HOME = ${JAVA_HOME}
- java -Xmx32m -version
- ./gradlew build testRecentVersionCompatibility --info
openjdk7:
<<: *job_definition
image: openjdk:7-jdk
before_script: # Workaround for https://github.com/travis-ci/travis-ci/issues/8503
- sed -i 's/security.provider.9/#security.provider.9/g' $JAVA_HOME/jre/lib/security/java.security
variables:
GRADLE_OPTS: "-Xmx386m -Xms386m -XX:MaxPermSize=128m" # Java 7 still uses separate permgen
openjdk8:
<<: *job_definition
image: openjdk:8-jdk
openjdk9:
<<: *job_definition
image: openjdk:9-jdk
openjdk10:
<<: *job_definition
image: openjdk:10-jdk
openjdk11:
<<: *job_definition
image: openjdk:11-jdk
code_quality:
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
paths: [gl-code-quality-report.json]