kind: pipeline

type: docker
name: default

steps:
- name: build
  image: archlinux
  commands:
  - pacman -Syu --noconfirm
  - pacman -S cmake gcc make git boost --noconfirm
  - git submodule update --init --recursive
  - ls src/includes/3thparty/
  - cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ .
  - make
  - chmod +x studproject
  - ./studproject -a true -r 1 -i 2 -m 5000000

- name: send telegram notification
  image: appleboy/drone-telegram
  settings:
    token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0
    to: -1001226107365
     message: >
       {{#success build.status}}
         build {{build.number}} succeeded. Good job.
       {{else}}
         build {{build.number}} failed. Fix me please.
       {{/success}}