testobuild/.drone.yml

36 lines
642 B
YAML
Raw Normal View History

2020-04-17 16:17:19 +00:00
kind: pipeline
type: docker
name: default
steps:
- name: build
2020-04-17 18:11:09 +00:00
image: archlinux
2020-04-17 16:17:19 +00:00
commands:
2020-04-17 18:16:21 +00:00
- pacman -Sy --noconfirm
2020-04-17 19:33:19 +00:00
- pacman -S cmake make libffi ninja clang --noconfirm
2020-04-17 16:17:19 +00:00
- mkdir build
- cd build
2020-04-17 19:32:13 +00:00
- cmake -G "Ninja" -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ ..
2020-04-17 16:17:19 +00:00
- cmake ..
2020-04-17 19:34:30 +00:00
- ninja
2020-04-17 16:17:19 +00:00
steps:
- name: test
2020-04-17 18:11:09 +00:00
image: archlinux
2020-04-17 16:17:19 +00:00
commands:
2020-04-17 18:16:21 +00:00
- pacman -Sy --noconfirm
2020-04-17 19:33:19 +00:00
- pacman -S cmake make ninja libffi clang --noconfirm
2020-04-17 16:17:19 +00:00
- mkdir build
- cd build
2020-04-17 19:32:13 +00:00
- cmake -G "Ninja" -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ ..
2020-04-17 16:17:19 +00:00
- cmake ..
2020-04-17 19:34:30 +00:00
- ninja
2020-04-17 17:59:32 +00:00
- ./testbin
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:
- push