diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-03-26 17:55:14 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-03-30 14:42:25 +0200 |
commit | 7999e3929608172e2447b03acf8f452b7d92f1e1 (patch) | |
tree | f7f887b912817fa58a51d7a16caf1f63504ef9d3 | |
parent | 8a9ee7a63f2b34f0d9d19c19598c75213114cf80 (diff) |
Add build script for debian based builds for srht
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | .builds/debian.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.builds/debian.yml b/.builds/debian.yml new file mode 100644 index 00000000..f0721170 --- /dev/null +++ b/.builds/debian.yml @@ -0,0 +1,25 @@ +image: debian/stable +sources: + - https://git.sr.ht/~matthiasbeyer/imag +packages: + - curl + - libclang-dev + - libdbus-1-dev + - libssl-dev + - openssl + - pkg-config + - git +tasks: + - install: curl https://sh.rustup.rs -sSf | sh -s -- -y + - check: | + cd imag + PATH="$HOME/.cargo/bin:$PATH" cargo check --all --all-features --tests + - build: | + cd imag + PATH="$HOME/.cargo/bin:$PATH" cargo build --all --all-features + - prepare-test: | + git config --global user.name "Test user" + git config --global user.email "test@user.tld" + - test: | + cd imag + PATH="$HOME/.cargo/bin:$PATH" cargo test --all --all-features |