Fakultas Ilmu Komputer UI

Commit 5b0a5ab9 authored by MUHAMMAD AAQIL ABDULLAH's avatar MUHAMMAD AAQIL ABDULLAH
Browse files

Update .gitlab-ci.yml

parent 7a80593e
Pipeline #134373 canceled with stages
in 1 minute and 36 seconds
image: gradle:7-jdk17
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- apt-get update -qy
- apt-get install -y ruby-dev
services:
- postgres:12.2-alpine
- GRADLE_USER_HOME="$(pwd)/.gradle"
- export GRADLE_USER_HOME
- apt-get update -qy
- apt-get install -y ruby-dev
variables:
POSTGRES_DB: $POSTGRES_DB
......@@ -15,12 +14,40 @@ variables:
stages:
- build
- test
- sonar
- release
build:
stage: build
script:
- gradle build
- gradle assemble --parallel
services:
- postgres:12.2-alpine
test:
stage: test
script:
- gradle check --parallel
- gradle jacocoTestReport --parallel
- gradle jacocoTestCoverageVerification
services:
- postgres:12.2-alpine
artifacts:
paths:
- build/jacoco/allTestCoverage.exec
sonarCheck:
stage: sonar
needs:
- job: test
script:
- gradle sonarqube -Dsonar.login=$SONAR_TOKEN
only:
- staging
services:
- postgres:12.2-alpine
staging:
image: ruby:2.6
......
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