-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy path.cirrus.yml
More file actions
47 lines (45 loc) · 1.76 KB
/
.cirrus.yml
File metadata and controls
47 lines (45 loc) · 1.76 KB
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
task:
name: FreeBSD
freebsd_instance:
image_family: freebsd-14-3
install_script:
- pkg install -y git gmake
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 sh
script:
- export PATH="$HOME/.ghcup/bin:$PATH"
- cabal test --test-show-details=direct
task:
name: OpenBSD
compute_engine_instance:
image_project: pg-ci-images
# See https://github.com/anarazel/pg-vm-images/blob/main/packer/openbsd.pkrvars.hcl
image: family/pg-ci-openbsd-vanilla
platform: openbsd
install_script: pkg_add ghc cabal-install git
script:
# OpenBSD image has separate /home partition, / is small
# as we run everything as root, we run out space
# we hack around making cabal write its stuff in /home
- mkdir -p /home/cabal
- ln -s /home/cabal $HOME/.cabal
- cabal update
# For some reason the job fails with -O2 optimization level,
# probably because of lack of disk space.
- cabal test --test-show-details=direct --ghc-options='-O1'
task:
name: NetBSD
compute_engine_instance:
image_project: pg-ci-images
# See https://github.com/anarazel/pg-vm-images/blob/main/packer/netbsd.pkrvars.hcl
image: family/pg-ci-netbsd-vanilla
platform: netbsd
install_script:
# Folders should be updated in line with
# http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/
- export PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.)/All/;http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/10.0_2025Q1/All/"
- echo $PKG_PATH
- pkg_add ghc cabal-install git
script:
- export CABAL_DIR=/tmp/.cabal
- cabal update
- cabal test --test-show-details=direct