testobuild/.drone.yml

44 lines
821 B
YAML
Raw Normal View History

2020-04-17 16:17:19 +00:00
kind: pipeline
type: docker
name: default
2020-04-18 14:55:15 +00:00
steps:
- name: test
image: archlinux
2020-04-18 15:13:27 +00:00
volumes:
2020-04-18 15:14:25 +00:00
- name: cache
path: /sharing
2020-04-18 14:55:15 +00:00
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
2020-04-18 15:26:14 +00:00
- ./testbin >> /sharing/message.tpl
2020-04-18 15:43:00 +00:00
- ./testbin >> /sharing/test.txt
2020-04-18 14:55:15 +00:00
2020-04-18 15:37:08 +00:00
- name: send telegram notification
image: appleboy/drone-telegram
volumes:
- name: cache
path: /sharing
settings:
token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0
to: -1001226107365
2020-04-18 15:52:52 +00:00
+ message_file: /sharing/message.tpl
2020-04-18 14:42:53 +00:00
2020-04-18 15:16:53 +00:00
volumes:
- name: cache
temp: {}
2020-04-17 18:00:42 +00:00
trigger:
2020-04-17 17:59:32 +00:00
branch:
2020-04-17 18:00:42 +00:00
- master
event:
2020-04-18 14:42:53 +00:00
- push