Skip to content

Commit

Permalink
Gitlab CI: Added dependency caching and artifact storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Churro committed Mar 20, 2021
1 parent 2c5a1ea commit 61a2ce5
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
image: maven:3-jdk-11-slim

variables:
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"

cache:
paths:
- .m2/repository

build:
script: "mvn package -B"
stage: build
script:
#- mvn $MAVEN_CLI_OPTS verify
- mvn --batch-mode --update-snapshots verify
artifacts:
name: "$CI_PROJECT_NAME"
paths:
- target/apps
- target/conf
- target/CryptoSlice-1.0-SNAPSHOT-jar-with-dependencies.jar

0 comments on commit 61a2ce5

Please sign in to comment.