From fce454ef1d7963459c687c0e09d28602e8a0a882 Mon Sep 17 00:00:00 2001 From: Hello_User Date: Thu, 16 Jul 2020 16:30:55 +0200 Subject: [PATCH] drone --- drone.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 drone.yml diff --git a/drone.yml b/drone.yml new file mode 100644 index 0000000..e094667 --- /dev/null +++ b/drone.yml @@ -0,0 +1,43 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: test + image: archlinux + volumes: + - name: cache + path: /sharing + commands: + - pacman -Sy --noconfirm + - pacman -S cmake make ninja libffi clang --noconfirm + - mkdir build + - cd build + - cmake -G "Ninja" -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ .. + - cmake .. + - ninja + - cp ./../drone-template.tpl /sharing/message.tpl + - ./testbin >> /sharing/message.tpl + - ./testbin >> /sharing/test.txt + +- name: send telegram notification + image: appleboy/drone-telegram + volumes: + - name: cache + path: /sharing + settings: + token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0 + to: -1001226107365 ++ message_file: /sharing/message.tpl + + + +volumes: +- name: cache + temp: {} + +trigger: + branch: + - master + event: + - push