2023-03-04 18:58:14 +01:00
|
|
|
---
|
2023-03-04 13:49:40 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2023-03-04 14:53:38 +01:00
|
|
|
name: Check_Requirement
|
2023-03-04 13:49:40 +01:00
|
|
|
|
|
|
|
steps:
|
2023-03-04 14:53:38 +01:00
|
|
|
- name: base_check
|
2023-05-04 15:40:05 +02:00
|
|
|
image: gradle:jdk11-alpine
|
2023-03-04 15:14:38 +01:00
|
|
|
commands:
|
|
|
|
- ./gradlew clean
|
2023-03-04 15:36:11 +01:00
|
|
|
- ./gradlew build
|
|
|
|
- ./gradlew test
|
2023-03-04 14:53:38 +01:00
|
|
|
|
2023-03-21 14:54:48 +01:00
|
|
|
- name: syntax_check
|
2023-05-04 15:40:05 +02:00
|
|
|
image: gradle:jdk11-alpine
|
2023-03-21 14:54:48 +01:00
|
|
|
commands:
|
|
|
|
- ./gradlew check
|
|
|
|
|
2023-03-04 14:53:38 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: master_build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: make_archive
|
|
|
|
image: alpine:latest
|
|
|
|
volumes:
|
|
|
|
- name: archives
|
|
|
|
path: /build
|
2023-03-04 13:56:10 +01:00
|
|
|
commands:
|
2023-03-21 14:54:48 +01:00
|
|
|
- apk add --no-cache git
|
2023-03-04 15:13:21 +01:00
|
|
|
- tar cvzf /build/$(git log -n 1 --format="%h")_school_archive.gz.tar app/ gradle/ gradlew/ gradlew.bat README.md settings.gradle
|
2023-03-21 23:05:39 +01:00
|
|
|
when:
|
2023-03-21 14:54:48 +01:00
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2023-03-21 23:05:39 +01:00
|
|
|
volumes:
|
2023-03-04 14:53:38 +01:00
|
|
|
- name: archives
|
|
|
|
host:
|
|
|
|
path: /srv/drone/school_project/archive/
|
2023-03-04 15:05:17 +01:00
|
|
|
depends_on:
|
2023-03-04 15:12:15 +01:00
|
|
|
- Check_Requirement
|
2023-03-04 18:58:14 +01:00
|
|
|
---
|
|
|
|
kind: signature
|
2023-05-04 15:40:05 +02:00
|
|
|
hmac: 6b154c74ec624ce2d5867386bb7a6ee51cae9153457a8ce15f53e54546ccbc0e
|
2023-03-04 18:58:14 +01:00
|
|
|
|
|
|
|
...
|