From 0c5e0f6d074b5a8577afa59e6a150550ec5a19e0 Mon Sep 17 00:00:00 2001 From: MassiveAtoms Date: Sat, 18 Apr 2020 11:55:15 -0300 Subject: [PATCH] tele --- .drone.yml | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3508896..91e06a4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,27 +2,29 @@ kind: pipeline type: docker name: default +steps: +- name: test + image: archlinux + 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 > message_file.tpl + + +- name: send telegram notification + image: appleboy/drone-telegram + settings: + token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0 + to: -1001226107365 + message: ++ message_file: file:///drone/src/git.tau.aperturect.com/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/message_file.tpl -pipeline: - build: - image: archlinux - 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 > template.txt - - ./testbin - notify: - image: appleboy/drone-telegram - template: file:///drone/src/git.tau.aperturect.com/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/template.txt - settings: - token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0 - to: -1001226107365 trigger: branch: