xwim/.drone.yml

63 lines
1.5 KiB
YAML
Raw Normal View History

2020-02-16 02:20:12 +00:00
kind: pipeline
type: docker
name: default
steps:
- name: build
image: arminfriedl/xwim-build
commands:
2020-02-25 21:01:31 +00:00
- meson wrap install gtest
- meson build -Db_coverage=true
2020-02-16 02:20:12 +00:00
- ninja -C build
2020-02-25 21:01:31 +00:00
- ninja -C build test && ninja -C build coverage
- echo "******** TEST LOGS ***********"
- cat build/meson-logs/testlog.txt
- echo "****** COVERAGE LOGS *********"
- cat build/meson-logs/coverage.txt
2020-02-16 02:20:12 +00:00
trigger:
event:
exclude:
- tag
2020-02-22 19:33:54 +00:00
---
kind: pipeline
type: docker
name: release
steps:
2020-02-23 19:56:29 +00:00
- name: build
2020-02-22 19:33:54 +00:00
image: arminfriedl/xwim-build
commands:
2020-02-25 21:01:31 +00:00
- meson wrap install gtest
2020-02-23 19:56:29 +00:00
- meson --buildtype=release build
2020-02-22 19:33:54 +00:00
- ninja -C build
2020-02-23 19:56:29 +00:00
- mkdir xwim-${DRONE_TAG}-x86_64-glibc-linux
- mv build/src/xwim xwim-${DRONE_TAG}-x86_64-glibc-linux
2020-02-22 19:33:54 +00:00
- name: package
image: arminfriedl/xwim-build
commands:
2020-02-23 19:56:29 +00:00
- tar cjf xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.bz2 xwim-${DRONE_TAG}-x86_64-glibc-linux/xwim
- tar czf xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.gz xwim-${DRONE_TAG}-x86_64-glibc-linux/xwim
- zip -r xwim-${DRONE_TAG}-x86_64-glibc-linux.zip xwim-${DRONE_TAG}-x86_64-glibc-linux
2020-02-22 19:33:54 +00:00
- name: publish
image: plugins/gitea-release
settings:
base_url: https://git.friedl.net
api_key:
from_secret: gitea_token
files:
2020-02-23 19:56:29 +00:00
- xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.bz2
- xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.gz
- xwim-${DRONE_TAG}-x86_64-glibc-linux.zip
2020-02-22 19:33:54 +00:00
title: xwim ${DRONE_TAG}
checksum:
- md5
- sha256
trigger:
event:
- tag