This repository has been archived on 2023-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
tcpaste/.drone.yml
Thorsten Schubert 64c89e9274
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone Build encountered an error
Bug fixes
2021-11-08 18:39:10 +01:00

135 lines
2 KiB
YAML

kind: pipeline
type: docker
name: clang
steps:
- name: debug
image: ubuntu:21.10
environment:
DEBIAN_FRONTEND: noninteractive
CC: clang
commands:
- apt-get -qq update
- apt-get -qq --force-yes install clang meson
- ./configure debug
- meson compile -v -C build
- meson install -C build
- name: release
image: ubuntu:21.10
environment:
DEBIAN_FRONTEND: noninteractive
CC: clang
commands:
- apt-get -qq update
- apt-get -qq --force-yes install clang meson
- ./configure release
- meson compile -v -C build
- meson install -C build
trigger:
branch:
- main
---
kind: pipeline
type: docker
name: gcc
steps:
- name: debug
image: ubuntu:21.10
environment:
DEBIAN_FRONTEND: noninteractive
CC: gcc
commands:
- apt-get -qq update
- apt-get -qq --force-yes install gcc meson
- ./configure debug
- meson compile -v -C build
- meson install -C build
- name: release
image: ubuntu:21.10
environment:
DEBIAN_FRONTEND: noninteractive
CC: gcc
commands:
- apt-get -qq update
- apt-get -qq --force-yes install gcc meson
- ./configure release
- meson compile -v -C build
- meson install -C build
trigger:
branch:
- main
---
kind: pipeline
type: docker
name: analysis
steps:
- name: tidy
image: ubuntu:21.10
environment:
DEBIAN_FRONTEND: noninteractive
CC: clang
commands:
- apt-get -qq update
- apt-get -qq --force-yes install clang clang-tidy meson
- ./configure
- clang-tidy -p=build src/*.c
trigger:
branch:
- main
depends_on:
- clang
---
kind: pipeline
type: docker
name: musl
steps:
- name: debug
pull: never
image: alpine:meson
environment:
CC: gcc
LDFLAGS: -static
commands:
- ./configure debug
- meson compile -v -C build
- meson install -C build
- name: release
pull: never
image: alpine:meson
environment:
CC: gcc
LDFLAGS: -static
commands:
- ./configure release
- meson compile -v -C build
- meson install -C build