Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit fa8b67c7 authored by Daya Adianto's avatar Daya Adianto
Browse files

Update .gitlab-ci.yml file

parent 644a4155
No related branches found
No related tags found
No related merge requests found
Pipeline #183394 passed with warnings with stages
in 8 minutes and 1 second
......@@ -40,6 +40,7 @@ stages:
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
allow_failure: true
build:
stage: build
......@@ -102,7 +103,9 @@ test:
deploy:
stage: deploy
image: docker.io/flyio/flyctl:v0.1.103
image:
name: docker.io/flyio/flyctl:v0.1.103
entrypoint: [""]
variables:
FLY_API_TOKEN: $PRODUCTION_FLY_API_TOKEN
rules: !reference [.upstream-deploy-production-rules, rules]
......@@ -111,6 +114,7 @@ deploy:
environment:
name: production
url: https://sitodo-pmpl.fly.dev
dependencies: []
# TODO: Run only the BDD test suite, excluding unit and functional tests
bdd-test:
......@@ -125,11 +129,9 @@ bdd-test:
SPRING_DATASOURCE_PASSWORD: sitodo_cicd
POSTGRES_USER: sitodo
POSTGRES_PASSWORD: sitodo_cicd
rules:
- !reference [.upstream-deploy-production-rules, rules]
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
allow_failure: true
DEBUG: "false"
TRACE: "false"
rules: !reference [.upstream-deploy-production-rules, rules]
needs:
- job: build
- job: deploy
......@@ -140,6 +142,7 @@ bdd-test:
- sed -i "s#http://localhost:8080#https://sitodo-pmpl.fly.dev#" src/test/resources/serenity.conf
script:
- mvn clean verify
dependencies: []
artifacts:
paths:
- target/site/serenity
......@@ -152,6 +155,8 @@ visualize-coverage:
- python /opt/cover2cover.py target/site/jacoco/jacoco.xml $CI_PROJECT_DIR/src/main/java > target/cobertura.xml
needs:
- test
dependencies:
- test
artifacts:
reports:
coverage_report:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment