2020-04-17 14:33:30 +00:00
|
|
|
kind: pipeline
|
2020-04-18 13:17:23 +00:00
|
|
|
|
2020-04-17 14:33:30 +00:00
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2020-04-18 13:17:23 +00:00
|
|
|
- name: build
|
2020-04-17 14:33:30 +00:00
|
|
|
image: archlinux
|
|
|
|
commands:
|
2020-04-18 13:17:23 +00:00
|
|
|
- pacman -Syu --noconfirm
|
2020-04-18 13:21:08 +00:00
|
|
|
- pacman -S cmake gcc make git boost --noconfirm
|
2020-04-18 13:17:23 +00:00
|
|
|
- git submodule update --init --recursive
|
2020-04-18 13:18:54 +00:00
|
|
|
- ls src/includes/3thparty/
|
2020-04-18 13:17:23 +00:00
|
|
|
- cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ .
|
2020-04-17 14:55:17 +00:00
|
|
|
- make
|
2020-04-18 13:31:57 +00:00
|
|
|
- chmod +x studproject
|
2020-04-18 13:34:54 +00:00
|
|
|
- ./studproject -a true -r 1 -i 2 -m 5000000
|
2020-04-18 14:06:34 +00:00
|
|
|
|
2020-04-18 14:08:47 +00:00
|
|
|
- name: send telegram notification
|
|
|
|
image: appleboy/drone-telegram
|
|
|
|
settings:
|
|
|
|
token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0
|
2020-04-18 14:14:07 +00:00
|
|
|
to: -1001226107365
|
2020-04-18 14:26:33 +00:00
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
|
|
|
build {{build.number}} succeeded. Good job.
|
|
|
|
{{else}}
|
|
|
|
build {{build.number}} failed. Fix me please.
|
|
|
|
{{/success}}
|