-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
23 lines (20 loc) · 951 Bytes
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
make_task:
container:
image: gcc:latest
prep_script: git submodule update --init --recursive
compile_script: make
install_script: make install
preptest0_script: cp -i suid.conf.d.example/linuxid.conf.ex /etc/suid.conf.d/linuxid.conf
preptest1_script: make linuxid
preptest2_script: for a in '' 0 1; do cp linuxid /linuxid$a && chown 0:0 /linuxid$a && chmod 755 /linuxid$a || exit 1; done
preptest3_script: chown 1:1 /linuxid1 && chmod +s /linuxid[01]
preptest4_script: git clone https://github.com/hilbix/tinolib.git ../tinolib
cirrus1_script: echo cirrus::1000:1000:GU-::/bin/bash > /etc/suid.conf.d/cirrus.conf
cirrus2_script: chown 1000:1000 .
test_script: suid cirrus -c 'make test'
# I really have no idea how to run it on MacOS since my Mac-Mini died
mac_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
prep_script: git submodule update --init --recursive
compile_script: make