-
Notifications
You must be signed in to change notification settings - Fork 3
/
.build.yml
49 lines (48 loc) · 1.41 KB
/
.build.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
# Build file for OOMAnalyser
#
# Copyright (c) 2020-2024 Carsten Grohmann
# License: MIT (see LICENSE.txt)
# THIS PROGRAM COMES WITH NO WARRANTY
image: archlinux
arch: x86_64
packages:
- python3
- python-virtualenv
- git
- xorg-server-xvfb
sources:
- https://git.sr.ht/~carstengrohmann/OOMAnalyser
shell: null
tasks:
- setup_pkgs: |
# Use precompiled Python binaries to speedup test from 17 minutes to 12 minutes
cat << EOT | sudo bash -
echo "[python]" >> /etc/pacman.conf
echo "SigLevel = Optional" >> /etc/pacman.conf
echo "Server = https://ffy00.github.io/arch-python-repo/" >> /etc/pacman.conf
EOT
# install pre-compiled Python 3.7 incl. dependencies
# - openssl-1.1 is required to install via pip from https sources
# - libffi7 is required to install Transcrypt
yay -Sy --noconfirm openssl-1.1 libffi7 python37
# install JS bundler
yay -Sy --noconfirm rollup
# install selenium helper and browser to run tests later
yay -Sy --noconfirm chromedriver google-chrome
- setup_venv: |
cd OOMAnalyser
make venv
- check_code_with_black: |
cd OOMAnalyser
make black-check
- build: |
cd OOMAnalyser
make build
ls -l OOMAnalyser.html OOMAnalyser.js
- test: |
cd OOMAnalyser
make test
triggers:
- action: email
condition: failure
to: Carsten Grohmann <[email protected]>