forked from pjd/pjdfstest
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.cirrus.yml
50 lines (46 loc) · 1.17 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock || echo ""
env:
RUSTFLAGS: -D warnings
build: &BUILD
build_script:
- . $HOME/.cargo/env || true
- cd rust
- cargo test
- cargo build --all-targets --release
- df -T /tmp
- target/release/pjdfstest -c $CFG -p /tmp
- su $SU_ARGS "target/release/pjdfstest -c $CFG -p /tmp"
task:
name: FreeBSD
freebsd_instance:
image: freebsd-13-3-release-amd64
env:
CFG: ci/freebsd-ufs.toml
SU_ARGS: -m nobody -c
setup_script:
- fetch https://sh.rustup.rs -o rustup.sh
- sh rustup.sh -y --profile=minimal
- |
cat <<EOF | adduser -w none -S -f -
pjdfstest::::::Dummy User for pjdfstest:/nonexistent:/sbin/nologin:
EOF
- . $HOME/.cargo/env
<< : *BUILD
task:
name: Linux
container:
image: rust:latest
env:
CFG: ci/linux-ext4.toml
SU_ARGS: -s /bin/sh -m nobody -c
setup_script:
- apt-get update
- apt-get -y install libacl1-dev acl
- |
cat <<EOF | newusers -r
tests:x:::Dummy User for pjdfstest:/:/usr/bin/nologin
pjdfstest:x:::Dummy User for pjdfstest:/:/usr/bin/nologin
EOF
<< : *BUILD