diff --git a/.drone.yml b/.drone.yml index 0e21a63..de0cf20 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,6 +11,11 @@ steps: - ./gradlew build - ./gradlew test + - name: syntax_check + image: gradle:jdk11-alpine + commands: + - ./gradlew check + --- kind: pipeline type: docker @@ -23,14 +28,15 @@ steps: - 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 - trigger: - - branch: - - master - event: - - include: - - push -volumes: + when: + branch: + - master + event: + exclude: + - pull_request +volumes: - name: archives host: path: /srv/drone/school_project/archive/ @@ -38,6 +44,6 @@ depends_on: - Check_Requirement --- kind: signature -hmac: 82ce5e9bc63570a5614c4e7b3ddc888fadb36f7660ab0ab521d0cda3c5842e05 +hmac: 9ca9095fdb69d7b89fda6b4db867877e76666c109607cc7b1e513814ad42bb7e ...