Commit 16caae9d authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

ci: Add build check.

Showing with 26 additions and 3 deletions
+26 -3
...@@ -331,6 +331,7 @@ build-windows: ...@@ -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: ...@@ -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: ...@@ -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
########### ###########
......
#! /bin/bash #! /bin/bash
set +x set +x
OPTS="-r -a" OPTS="-r -a -i"
FILES="../windows/pamhyr-windows.exe ../windows/pamhyr-windows.zip ../linux/pamhyr-gnulinux.tar.xz"
if [ "$1" == "builds" ]; then
FILES="../windows/ ../linux/"
else
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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment