School_Project/.drone.yml
Anthony Debucquoy e2faf3e0f7
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
Modyfing jdk version for CI
Version jdk11 doesn't support instanceof assignation
2023-03-30 18:23:40 +02:00

50 lines
953 B
YAML

---
kind: pipeline
type: docker
name: Check_Requirement
steps:
- name: base_check
image: gradle:jdk19-alpine
commands:
- ./gradlew clean
- ./gradlew build
- ./gradlew test
- name: syntax_check
image: gradle:jdk11-alpine
commands:
- ./gradlew check
---
kind: pipeline
type: docker
name: master_build
steps:
- name: make_archive
image: alpine:latest
volumes:
- name: archives
path: /build
commands:
- apk add --no-cache git
- tar cvzf /build/$(git log -n 1 --format="%h")_school_archive.gz.tar app/ gradle/ gradlew/ gradlew.bat README.md settings.gradle
when:
branch:
- master
event:
exclude:
- pull_request
volumes:
- name: archives
host:
path: /srv/drone/school_project/archive/
depends_on:
- Check_Requirement
---
kind: signature
hmac: 8d927965f6bd0cebe619af7d5e2554f69928ad78d6912d10381fa44d06cad10f
...