OOMAnalyser/.build.yml

44 lines
1.0 KiB
YAML
Raw Normal View History

2021-12-26 23:33:07 +01:00
# Build file for OOMAnalyser
#
2023-01-08 13:46:36 +01:00
# Copyright (c) 2020-2023 Carsten Grohmann
2022-01-02 13:35:09 +01:00
# License: MIT (see LICENSE.txt)
# THIS PROGRAM COMES WITH NO WARRANTY
image: archlinux
arch: x86_64
packages:
- python3
- python-black
- python-virtualenv
- git
2021-07-14 23:49:31 +02:00
- xorg-server-xvfb
sources:
- https://git.sr.ht/~carstengrohmann/OOMAnalyser
shell: null
tasks:
2020-12-08 11:21:34 +01:00
- setup_pkgs: |
yay -S --noconfirm --noeditmenu --noupgrademenu rollup chromedriver google-chrome
git clone https://aur.archlinux.org/python37.git
cd python37
# disable optimizations to speedup build process by 8 minutes
sed -i '/enable-optimizations/d' PKGBUILD
makepkg --noconfirm -si --skippgpcheck
2021-07-14 23:49:31 +02:00
cd ..
2020-12-08 11:21:34 +01:00
- 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: |
2021-07-14 23:49:31 +02:00
cd OOMAnalyser
make test
triggers:
- action: email
condition: failure
2021-07-14 23:49:31 +02:00
to: Carsten Grohmann <mail@carstengrohmann.de>