From 1c661db6320682e1d95ee2633c17146e35d4126d Mon Sep 17 00:00:00 2001 From: CismonX Date: Sun, 24 Jan 2021 03:41:56 +0800 Subject: [PATCH] Switch to self-hosted CI (Drone). --- .drone.yml | 22 +++++++++++++++++++ .gitattributes | 12 ----------- .github/workflows/build.yml | 42 ------------------------------------- README.md | 2 +- 4 files changed, 23 insertions(+), 55 deletions(-) create mode 100644 .drone.yml delete mode 100644 .gitattributes delete mode 100644 .github/workflows/build.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b60c91d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,22 @@ +# +# Copyright (C) 2021 CismonX +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty, provided the copyright notice and +# this notice are preserved. This file is offered as-is, without any warranty. +# + +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: pureos/amber-slim + commands: + - apt install --assume-yes build-essential autoconf automake libtool autoconf-archive dejagnu texinfo + - autoreconf --install + - ./configure CFLAGS='-O0 -g -std=c99 -Wall -Wextra -Wpedantic --coverage' + - make + - make check + - gcov -o src/.libs src/ctlseqs.c diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 8cf7ff4..0000000 --- a/.gitattributes +++ /dev/null @@ -1,12 +0,0 @@ -# -# Copyright (C) 2020,2021 CismonX -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty, provided the copyright notice and -# this notice are preserved. This file is offered as-is, without any warranty. -# - -# Attributes for GitHub Linguist -*.h linguist-language=c -configure.ac linguist-detectable=false -Makefile.am linguist-detectable=false diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 5a1e720..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Copyright (C) 2020,2021 CismonX -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty, provided the copyright notice and -# this notice are preserved. This file is offered as-is, without any warranty. -# - -name: build - -on: push - -jobs: - build: - name: Build library - runs-on: ${{ matrix.os }} - env: - packages: autoconf automake libtool autoconf-archive dejagnu - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Install dependencies (apt) - if: ${{ matrix.os == 'ubuntu-latest' }} - run: | - sudo apt update -qq - sudo apt install -qq ${packages} - - name: Install dependencies (Homebrew) - if: ${{ matrix.os == 'macos-latest' }} - run: | - brew update - brew install ${packages} - - name: Configure build - run: | - autoreconf --install - ./configure CFLAGS='-O0 -g -std=c99 -Wall -Wextra -Wpedantic' - - name: Compile - run: make - - name: Run tests - run: make check diff --git a/README.md b/README.md index 304d676..7bbbfa4 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ this notice are preserved. This file is offered as-is, without any warranty. # README -[![GitHub Actions](https://github.com/CismonX/ctlseqs/workflows/build/badge.svg)](https://github.com/CismonX/ctlseqs/actions) +[![Build Status](https://drone.cismon.net/api/badges/CismonX/ctlseqs/status.svg)](https://drone.cismon.net/CismonX/ctlseqs) [![LICENSE](https://img.shields.io/badge/license-GPL--3.0--or--later-blue.svg)](COPYING) ctlseqs - helper library for terminal control sequences