xwim/.drone.yml

74 lines
1.9 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:shared
2020-02-16 02:20:12 +00:00
commands:
# - meson wrap install gtest
- meson target/shared #-Db_coverage=true
- ninja -C target/shared
# - 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
- name: build-static
image: arminfriedl/xwim-build:static
commands:
# - meson wrap install gtest
- meson --default-library static target/static #-Db_coverage=true
- ninja -C target/static
# - 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 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