forked from fubarnetes/libjail-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
29 lines (29 loc) · 1.09 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
task:
freebsd_instance:
matrix:
image: freebsd-12-0-release-amd64
image: freebsd-11-2-release-amd64
env:
CIRRUS_SHELL: /bin/sh
CODECOV_TOKEN: ENCRYPTED[4a184dabcd401205e29abdf52d0b4dde9d5029ac26ced03035962839b5f70a157cece9ff4f12812db5a72c06263a85fb]
install_script: |
pkg install -y curl
curl https://sh.rustup.rs -sSf | sh -s -- -y
. $HOME/.cargo/env
cargo_cache:
folder: $HOME/.cargo/registry
build_script: env PATH="$HOME/.cargo/bin:$PATH" cargo build --all-features
test_script: env PATH="$HOME/.cargo/bin:$PATH" cargo test --all-features
coverage_script: |
cat $0
echo $SHELL
ls -lha target
find target/debug -maxdepth 1 -iname 'jail-*[^\.d]'
pkg install -y kcov bash git
for file in target/debug/jail-*[^\.d]; do
mkdir -p "target/cov/`basename $file`"
kcov --exclude-pattern=$HOME/.cargo,/usr/lib,/usr/local/lib,/usr/src/lib/ --verify "target/cov/`basename $file`" "$file"
done
curl -s https://codecov.io/bash | bash
echo "Uploaded code coverage"
before_cache_script: rm -rf $HOME/.cargo/registry/index