ns-usbloader/.drone.yml

94 lines
2.2 KiB
YAML
Raw Normal View History

kind: pipeline
type: docker
name: default
steps:
- name: test
2022-12-23 07:47:10 +03:00
image: maven:3-openjdk-17
commands:
2022-07-26 20:16:01 +03:00
- mvn -B -DskipTests clean package
- mvn test -B
volumes:
2022-07-26 20:16:01 +03:00
- name: m2
path: /root/.m2
- name: archive-standard-artifact
image: alpine:latest
commands:
2022-07-26 20:16:01 +03:00
- mkdir -p /builds/ns-usbloader
2023-03-17 04:27:09 +03:00
- echo target/ns-usbloader-*jar
2022-07-26 20:16:01 +03:00
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
volumes:
2022-07-26 20:16:01 +03:00
- name: builds
path: /builds
2023-02-08 01:15:30 +03:00
- name: make-win-installer
image: wheatstalk/makensis:3
commands:
- cp target/NS-USBloader.exe misc/windows/NSIS/
- misc/windows/update_version.sh
2023-02-08 01:50:27 +03:00
- cd misc/windows/NSIS
- makensis -V4 ./installer.nsi
2023-03-17 04:27:09 +03:00
- echo Installer-*.exe
2023-02-08 01:15:30 +03:00
- cp Installer-*.exe /builds/ns-usbloader/
2023-02-08 01:50:27 +03:00
- rm ./NS-USBloader.exe
2023-03-17 04:27:09 +03:00
- rm ./Installer-*.exe
2023-02-08 01:50:27 +03:00
- cd ../../../
2023-02-08 01:15:30 +03:00
volumes:
- name: builds
path: /builds
- name: jdk
2023-02-08 01:58:27 +03:00
path: /drone/src/misc/windows/NSIS/jdk
2023-02-08 01:15:30 +03:00
2022-07-26 20:16:01 +03:00
- name: emerge-legacy-artifact
2022-12-23 07:47:10 +03:00
image: maven:3-openjdk-17
commands:
2022-07-26 20:16:01 +03:00
- . ./.make_legacy
- mvn -B -DskipTests clean package
2023-03-17 04:27:09 +03:00
- echo target/ns-usbloader-*jar
2022-07-26 20:16:01 +03:00
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
volumes:
2022-07-26 20:16:01 +03:00
- name: m2
path: /root/.m2
- name: builds
path: /builds
2023-02-08 01:15:30 +03:00
- name: make-legacy-win-installer
image: wheatstalk/makensis:3
commands:
- cp target/NS-USBloader.exe misc/windows/NSIS/
- misc/windows/update_version.sh legacy
2023-02-08 01:50:27 +03:00
- cd misc/windows/NSIS
- makensis -V4 ./installer.nsi
2023-03-17 04:27:09 +03:00
- echo Installer-*.exe
2023-02-08 01:15:30 +03:00
- cp Installer-*.exe /builds/ns-usbloader/
2023-02-10 21:09:26 +03:00
- cd ../../../
2023-02-08 01:15:30 +03:00
volumes:
- name: builds
path: /builds
- name: jdk
2023-02-08 01:58:27 +03:00
path: /drone/src/misc/windows/NSIS/jdk
2023-02-08 01:15:30 +03:00
2023-02-10 21:09:26 +03:00
- name: emerge-mac-m1-artifact
2023-02-10 21:23:22 +03:00
image: maven:3-openjdk-17
2023-02-10 21:09:26 +03:00
commands:
- . ./.make_m1
- mvn -B -DskipTests clean package
2023-03-17 04:27:09 +03:00
- echo target/ns-usbloader-*jar
2023-02-10 21:09:26 +03:00
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
volumes:
2023-02-10 21:23:22 +03:00
- name: m2
path: /root/.m2
2023-02-10 21:09:26 +03:00
- name: builds
path: /builds
volumes:
- name: m2
host:
path: /home/docker/drone/files/m2
- name: builds
host:
2022-07-26 20:16:01 +03:00
path: /home/www/builds
2023-02-08 01:15:30 +03:00
- name: jdk
host:
path: /home/docker/drone/files/assembly/openjdk-19.0.2