Fakultas Ilmu Komputer UI

Commit e191dc8f authored by hazlazuardi's avatar hazlazuardi
Browse files

Trying gitlab ci yml

parent d0ea1752
image: java:latest
stages:
- build
- test
image: gradle:6.1.1-jdk8
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
- execute
build:
stage: build
script:
- gradle assemble --parallel
test:
stage: test
script:
- gradle check --parallel
- gradle jacocoTestReport --parallel
- gradle jacocoTestCoverageVerification
- gradle jacocoMergeTest
script: /usr/lib/jvm/java-8-openjdk-amd64/bin/javac HelloWorld.java
artifacts:
paths:
- build/jacoco/allTestCoverage.exec
- HelloWorld.*
cache:
key: "$CI_COMMIT_REF_NAME"
paths:
- $GRADLE_USER_HOME/wrapper
- $GRADLE_USER_HOME/caches
execute:
stage: execute
script: /usr/lib/jvm/java-8-openjdk-amd64/bin/java HelloWorld
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment