diff options
| author | Robin Krahl <robin.krahl@ireas.org> | 2019-10-27 11:01:08 +0000 | 
|---|---|---|
| committer | Robin Krahl <robin.krahl@ireas.org> | 2019-10-27 12:04:09 +0100 | 
| commit | 3b76a0a46ce38eef7fe3e5a969cec6ffee47f227 (patch) | |
| tree | 1455d8a1bd27ce3b2cb93cec4f7fd530096072b4 | |
| parent | 0970381271bd07f020a888b027653ca627e8655c (diff) | |
| download | dialog-rs-3b76a0a46ce38eef7fe3e5a969cec6ffee47f227.tar.gz dialog-rs-3b76a0a46ce38eef7fe3e5a969cec6ffee47f227.tar.bz2 | |
Add CI scripts for builds.sr.ht
This patch adds three CI scripts:
- archlinux builds dialog-rs on Arch with the latest rustc version.
- debian builds dialog-rs on Debian Stable with an older rustc version.
- lint checks the formatting, REUSE compliance and clippy warnings.
These scripts are executed on each push.  If a script fails, the
committer will receive a mail.  If a script fails on the master branch,
a mail is sent to the mailing list instead.  The builds are also listed
in the web interface at:
	https://builds.sr.ht/~ireas/dialog-rs
| -rw-r--r-- | .builds/archlinux.yml | 14 | ||||
| -rw-r--r-- | .builds/debian.yml | 14 | ||||
| -rw-r--r-- | .builds/lint.yml | 27 | 
3 files changed, 55 insertions, 0 deletions
| diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml new file mode 100644 index 0000000..52e8156 --- /dev/null +++ b/.builds/archlinux.yml @@ -0,0 +1,14 @@ +# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org> +# SPDX-License-Identifier: MIT +image: archlinux +packages: +  - rust +sources: +  - https://git.ireas.org/dialog-rs +tasks: +  - build: | +      cd dialog-rs +      cargo build --release +  - test: | +      cd dialog-rs +      cargo test diff --git a/.builds/debian.yml b/.builds/debian.yml new file mode 100644 index 0000000..9140c92 --- /dev/null +++ b/.builds/debian.yml @@ -0,0 +1,14 @@ +# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org> +# SPDX-License-Identifier: MIT +image: debian/stable +packages: +  - cargo +sources: +  - https://git.ireas.org/dialog-rs +tasks: +  - build: | +      cd dialog-rs +      cargo build --release +  - test: | +      cd dialog-rs +      cargo test diff --git a/.builds/lint.yml b/.builds/lint.yml new file mode 100644 index 0000000..6b06f91 --- /dev/null +++ b/.builds/lint.yml @@ -0,0 +1,27 @@ +# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org> +# SPDX-License-Identifier: MIT +image: archlinux +packages: +  - rustup +  - python +  - python-pip +  - python-pygit2 +sources: +  - https://git.ireas.org/dialog-rs +tasks: +  - setup: | +      pip install --user fsfe-reuse +      rustup update stable +      rustup self upgrade-data +      rustup default stable +      rustup component add rustfmt +      rustup component add clippy +  - format: | +      cd dialog-rs +      cargo fmt -- --check +  - reuse: | +      cd dialog-rs +      ~/.local/bin/reuse lint +  - clippy: | +      cd dialog-rs +      cargo clippy -- -D warnings | 
