mirror of https://gitlab.com/pamhyr/pamhyr2
ci: Add build check.
parent
d541becb1a
commit
16caae9d40
|
|
@ -331,6 +331,7 @@ build-windows:
|
||||||
- mkdir windows
|
- mkdir windows
|
||||||
- cd windows
|
- cd windows
|
||||||
# Setup env
|
# Setup env
|
||||||
|
- pip3 install -U pip
|
||||||
- python -m pip install -r ..\requirements.txt
|
- python -m pip install -r ..\requirements.txt
|
||||||
- python -m pip install -U -r ..\requirements.txt
|
- python -m pip install -U -r ..\requirements.txt
|
||||||
# Run Pyinstaller
|
# Run Pyinstaller
|
||||||
|
|
@ -404,6 +405,23 @@ windows-package-exe:
|
||||||
- copy ..\packages\pamhyr.nsi pamhyr.nsi
|
- copy ..\packages\pamhyr.nsi pamhyr.nsi
|
||||||
- .\make-windows-exe.bat
|
- .\make-windows-exe.bat
|
||||||
|
|
||||||
|
build-check-clamav:
|
||||||
|
stage: antivirus
|
||||||
|
tags:
|
||||||
|
- release
|
||||||
|
- linux
|
||||||
|
needs:
|
||||||
|
- job: build-linux
|
||||||
|
artifacts: true
|
||||||
|
- job: build-windows
|
||||||
|
artifacts: true
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
|
||||||
|
script:
|
||||||
|
- cd packages
|
||||||
|
- ./clamav-scan.sh builds
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
pkg-check-clamav:
|
pkg-check-clamav:
|
||||||
stage: antivirus
|
stage: antivirus
|
||||||
tags:
|
tags:
|
||||||
|
|
@ -420,7 +438,7 @@ pkg-check-clamav:
|
||||||
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_TAG
|
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_TAG
|
||||||
script:
|
script:
|
||||||
- cd packages
|
- cd packages
|
||||||
- ./clamav-scan.sh
|
- ./clamav-scan.sh packages
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
###########
|
###########
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,13 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
OPTS="-r -a"
|
OPTS="-r -a -i"
|
||||||
|
|
||||||
|
if [ "$1" == "builds" ]; then
|
||||||
|
FILES="../windows/ ../linux/"
|
||||||
|
else
|
||||||
FILES="../windows/pamhyr-windows.exe ../windows/pamhyr-windows.zip ../linux/pamhyr-gnulinux.tar.xz"
|
FILES="../windows/pamhyr-windows.exe ../windows/pamhyr-windows.zip ../linux/pamhyr-gnulinux.tar.xz"
|
||||||
|
fi
|
||||||
|
|
||||||
clamscan $OPTS $FILES | tee clamav.log
|
clamscan $OPTS $FILES | tee clamav.log
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue