Switch to self-hosted CI (Drone).

This commit is contained in:
CismonX 2021-01-26 15:07:14 +08:00
parent 930f20a789
commit c265de4722
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
5 changed files with 26 additions and 82 deletions

View File

@ -1,15 +0,0 @@
#
# Copyright (C) 2020 CismonX <admin@cismon.net>
#
# 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.
#
ignore:
- "src/logging.c"
- "src/mnemonic.c"
coverage:
range: 50..90
round: down
precision: 2

22
.drone.yml Normal file
View File

@ -0,0 +1,22 @@
#
# Copyright (C) 2021 CismonX <admin@cismon.net>
#
# 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 -y install build-essential autoconf automake dejagnu
- autoreconf --install
- ./configure CFLAGS='-O0 -g -std=c99 -Wall -Wextra -Wpedantic --coverage'
- make
- make check
- gcov src/*.c

13
.gitattributes vendored
View File

@ -1,13 +0,0 @@
#
# Copyright (C) 2020 CismonX <admin@cismon.net>
#
# 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
tests/* linguist-detectable=false
configure.ac linguist-detectable=false
Makefile.am linguist-detectable=false

View File

@ -1,49 +0,0 @@
#
# Copyright (C) 2020 CismonX <admin@cismon.net>
#
# 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.
#
language: c
os:
- linux
- osx
dist: bionic
compiler:
- gcc
- clang
addons:
apt:
update: true
packages:
- dejagnu
homebrew:
update: true
packages:
- dejagnu
branches:
only:
- master
before_script:
- export GCOV_BIN=`test $TRAVIS_COMPILER = clang && echo 'llvm-cov gcov' || echo gcov`
- test $TRAVIS_OS_NAME = osx && export PATH=$PATH:/Library/Developer/CommandLineTools/usr/bin || true
script:
- autoreconf --install
- ./configure CFLAGS='-O0 -g -Wall -Wextra -Wpedantic -coverage'
- make
- make check
- $GCOV_BIN src/*.c
- sudo make install
- command -v u6a u6ac
after_success:
- test $TRAVIS_OS_NAME = osx && true || bash <(curl -s https://codecov.io/bash)

View File

@ -1,5 +1,5 @@
<!-- <!--
Copyright (C) 2020 CismonX <admin@cismon.net> Copyright (C) 2020,2021 CismonX <admin@cismon.net>
Copying and distribution of this file, with or without modification, are Copying and distribution of this file, with or without modification, are
permitted in any medium without royalty, provided the copyright notice and permitted in any medium without royalty, provided the copyright notice and
@ -8,9 +8,8 @@ this notice are preserved. This file is offered as-is, without any warranty.
# U6a # U6a
[![Travis CI](https://travis-ci.com/esolangs/u6a.svg)](https://travis-ci.com/esolangs/u6a) [![Build Status](https://drone.cismon.net/api/badges/esolangs/u6a/status.svg)](https://drone.cismon.net/esolangs/u6a)
[![Codecov](https://codecov.io/gh/esolangs/u6a/branch/master/graphs/badge.svg)](https://codecov.io/gh/esolangs/u6a) [![License](https://img.shields.io/badge/license-GPL--3.0--or--later-blue.svg)](LICENSE)
[![LICENSE](https://img.shields.io/badge/license-GPL--3.0--or--later-blue.svg)](LICENSE)
Implementation of Unlambda, an esoteric programming language. Implementation of Unlambda, an esoteric programming language.
@ -18,7 +17,7 @@ Implementation of Unlambda, an esoteric programming language.
The U6a project provides a bytecode compiler and a runtime system for the [Unlambda](http://www.madore.org/~david/programs/unlambda/) programming language. The U6a project provides a bytecode compiler and a runtime system for the [Unlambda](http://www.madore.org/~david/programs/unlambda/) programming language.
Ideas behind this implementation can be found [here](https://github.com/esolangs/u6a/wiki/Developer's-Notes-on-Implementing-Unlambda). Ideas behind this implementation can be found [here](https://git.cismon.net/esolangs/u6a/wiki/Developer%27s-Notes-on-Implementing-Unlambda).
U6a is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. U6a is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.