forked from mbeddr/mbeddr.core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
34 lines (31 loc) · 969 Bytes
/
.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
image: mbeddr/mbeddr.build.docker
variables:
GRADLE_USER_HOME: "gradle/.gradle"
# !! Important Note !! Don't use GRADLE_OPTS as it can only be provided with JVM arguments
# (see https://github.com/gradle/gradle/issues/7491 for details)
GRADLE_OPTIONS: "
-Dorg.gradle.daemon=false
-PforceCI=true
-PmpsExtensionsVersion=$MPS_EXTENSIONS_VERSION
-PmbeddrPlatformVersion=$MBEDDR_PLATFORM_VERSION
-PdependencyRepositories=$MBEDDR_DEPENDENCY_REPOSITORY
-PsnapshotRepository=$MBEDDR_SNAPTHOT_REPOSITORY
-PreleaseRepository=$MBEDDR_RELEASE_REPOSITORY
-PnexusUsername=$NEXUS_USER
-PnexusPassword=$NEXUS_PASS
"
before_script:
- gcc --version
- java -version
- mkdir -p $GRADLE_USER_HOME
- chmod a+x gradlew
- ./gradlew --version
build:
stage: build
script:
- ./gradlew $GRADLE_OPTIONS publishMbeddrPublicationToMavenRepository
cache:
paths:
- $GRADLE_USER_HOME
only:
- web