chore: make CI ligther
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details

pull/1/head
Davide Polonio 2023-03-27 16:49:29 +02:00
parent 200d86759c
commit 623328633f
2 changed files with 40 additions and 19 deletions

View File

@ -1,14 +1,21 @@
kind: pipeline
type: docker
name: default
name: commit
steps:
- name: Static checks
- name: checks
image: eclipse-temurin:17-jdk
commands:
- apt-get update -qq && apt-get install -qy python3 pip git && pip install pre-commit
- pre-commit run --all-files
- name: UT & IT Tests
---
kind: pipeline
type: docker
name: pr
steps:
- name: tests
image: quay.io/testcontainers/dind-drone-plugin
environment:
CI_WORKSPACE: "/drone/src"
@ -20,22 +27,6 @@ steps:
volumes:
- name: dockersock
path: /var/run
- name: Packaging
image: eclipse-temurin:17-jdk
commands:
- ./mvnw package -B -DskipTests=true
depends_on:
- UT & IT Tests
- Static checks
- name: Docker image
image: thegeeklab/drone-docker-buildx:23
privileged: true
settings:
pull_image: true
dry_run: true
depends_on:
- UT & IT Tests
- Static checks
# Specify docker:dind as a service
services:
@ -49,3 +40,32 @@ services:
volumes:
- name: dockersock
temp: {}
trigger:
event:
- pull_requests
- cron
---
kind: pipeline
type: docker
name: artifacts
steps:
- name: packaging
image: eclipse-temurin:17-jdk
commands:
- ./mvnw package -B -DskipTests=true -Dmaven.test.skip=true -Dmaven.site.skip=true -Dmaven.javadoc.skip=true
- name: dockerfile
image: thegeeklab/drone-docker-buildx:23
privileged: true
settings:
pull_image: true
dry_run: true
trigger:
branch:
- devel
event:
- push
- tag

View File

@ -9,6 +9,7 @@ repos:
- id: end-of-file-fixer
exclude: "^.*\\.vm$"
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-added-large-files
- id: check-toml
- id: mixed-line-ending