This commit is contained in:
MassiveAtoms 2020-04-18 12:13:27 -03:00
parent e822f0977f
commit eeb741d6a2

View File

@ -5,6 +5,9 @@ name: default
steps:
- name: test
image: archlinux
volumes:
- name: sharing
path: /sharing
commands:
- pacman -Sy --noconfirm
- pacman -S cmake make ninja libffi clang --noconfirm
@ -13,16 +16,19 @@ steps:
- cmake -G "Ninja" -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ ..
- cmake ..
- ninja
- ./testbin > message_file.tpl
- ./testbin > /sharing/message.txt
- name: send telegram notification
image: appleboy/drone-telegram
volumes:
- name: sharing
path: /sharing
settings:
token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0
to: -1001226107365
message:
+ message_file: file:///${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/message_file.tpl
+ message_file: /sharing/message.txt