- logfile=`mktemp`
- ci/build.sh |& tee $logfile
- echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt
- - rm $logfile
- cat metrics.txt
artifacts:
when: on_success
- logfile=`mktemp`
- ci/build.sh |& tee $logfile
- echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt
- - rm $logfile
- cat metrics.txt
artifacts:
when: on_success
- logfile=`mktemp`
- ci/build.sh 2>&1 | tee $logfile
- echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt
- - rm $logfile
- cat metrics.txt
artifacts:
when: on_success
- python ci/build_windows.py --build-system $env:build_system --platform $Env:project_platform --configuration $env:configuration 2>&1 | tee -a $logfile
- $warnings_count = (Select-String -Pattern " warning " -Path $logfile).length
- echo "$CI_JOB_NAME-warnings $warnings_count" > metrics.txt
- - rm $logfile
- cat metrics.txt
- python gen_version.py --output GRAPHVIZ_VERSION
# Package
- logfile=`mktemp`
- ci/out-of-source-build.sh |& tee $logfile
- echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt
- - rm $logfile
- cat metrics.txt
needs:
- job: docker_build_ubuntu-21.10
- logfile=`mktemp`
- python3 -m pylint --rcfile=.pylintrc `find . -name '*.py' | xargs` --exit-zero |& tee $logfile
- echo "$CI_JOB_NAME-warnings `egrep -c '\<[CRWEF][[:digit:]]{4}\>' $logfile`" > metrics.txt
- - rm $logfile
- cat metrics.txt
- python3 -m pylint --rcfile=.pylintrc --disable=fixme `find . -name '*.py' | xargs`
artifacts: