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