forked from jaronparsons/furybsd-livecd
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.cirrus.yml
48 lines (41 loc) · 1.59 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
freebsd_instance:
image: freebsd-12-1-release-amd64
# cpu: 1 gives an error; >2 works
cpu: 2
memory: 8G
env:
CIRRUS_CLONE_DEPTH: 1
GITHUB_TOKEN: ENCRYPTED[ed170fdbb21e31f2f09259d8e5ef007450794ee10d9f3a6387661ecd35d1f9b4d1f6a888d01f3d223e19582328bc6f9f]
task:
stateful: false
timeout_in: 60m
only_if: $CIRRUS_TAG != 'continuous'
env:
matrix:
# DESKTOP: 'lumina'
# DESKTOP: 'xfce'
# DESKTOP: 'mate'
# DESKTOP: 'kde'
DESKTOP: 'gnustep'
env:
matrix:
arch: 'amd64'
# arch: 'i386'
install_script:
- ls -lh /usr/src || true
- env
- kldload zfs.ko
- kldload tmpfs.ko
- kldload nullfs.ko
- kldload geom_uzip.ko
- pkg install -y pkg git-lite zsync wget sha bash # qemu-devel uefi-edk2-qemu-x86_64
- mkdir -p /usr/local/furybsd
- mount -t tmpfs tmpfs /usr/local/furybsd
test_script:
- /bin/sh -x ./build.sh "${DESKTOP}" || true # FIXME: Why does this return an error even though the ISO succeeded?
- df -h
- ( cd "${CIRRUS_WORKING_DIR}"/artifacts ; zsyncmake *.iso )
- ls -lh "${CIRRUS_WORKING_DIR}"/artifacts/
- wget -c "https://raw.githubusercontent.com/probonopd/uploadtool/8142d461aba7b92a058116fe5ee75be438b75fa4/upload.sh"
- export TRAVIS_REPO_SLUG="${CIRRUS_REPO_FULL_NAME}"
- case "$CIRRUS_BRANCH" in *pull/*) echo skipping since PR ;; * ) wget https://github.com/tcnksm/ghr/files/5247714/ghr.zip ; unzip ghr.zip ; ./ghr -replace -t "${GITHUB_TOKEN}" -u "${CIRRUS_REPO_OWNER}" -r "${CIRRUS_REPO_NAME}" -c "${CIRRUS_CHANGE_IN_REPO}" continuous "${CIRRUS_WORKING_DIR}"/artifacts ; esac