-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.cirrus.yml
46 lines (42 loc) · 1.27 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
task:
only_if: $CIRRUS_BRANCH == 'master'
matrix:
- name: linux
container:
image: node:latest
- name: linux + puppeteer
container:
image: ahwayakchih/nodeapp:puppeteer
env:
DISPLAY: ":99"
XAUTHORITY: /tmp/crx3.puppeteer/Xauthority
CHROME_POLICIES: /etc/chromium/policies
FILE_CHECK_DELAY: 2500
xvfb_start_background_script:
# Based on Xauthority stuff from xvfb-run:
# https://salsa.debian.org/xorg-team/xserver/xorg-server/blob/debian-unstable/debian/local/xvfb-run
- mkdir -p $(dirname $XAUTHORITY);
touch "$XAUTHORITY";
Xvfb $DISPLAY -screen 0 1024x768x24 -nolisten tcp -nolisten unix -auth $XAUTHORITY
- name: macos
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
env:
FILE_CHECK_DELAY: 2500
node_script:
- brew install node@18
- brew link --overwrite node@18
node_modules_cache:
folder: node_modules
fingerprint_script:
- echo $CIRRUS_OS
- echo $CHROME_BIN
- node --version
- cat package.json
populate_script: npm install
test_script:
- npm run puppeteer || true
- npm test
on_failure:
failed_artifacts:
path: "test*.*"