testobuild/.drone.yml
MassiveAtoms 59cc2fb3ec tele
2020-04-18 12:14:25 -03:00

40 lines
715 B
YAML

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
- ./testbin > /sharing/message.txt
- name: send telegram notification
image: appleboy/drone-telegram
volumes:
- name: cache
path: /sharing
settings:
token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0
to: -1001226107365
message:
+ message_file: /sharing/message.txt
trigger:
branch:
- master
event:
- push