script:
- logfile=`mktemp`
- ci/build.sh |& tee $logfile
- - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt
- - cat metrics.txt
+ - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" | tee metrics.txt
artifacts:
when: on_success
expire_in: 1 week
script:
- logfile=`mktemp`
- ci/build.sh |& tee $logfile
- - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt
- - cat metrics.txt
+ - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" | tee metrics.txt
artifacts:
when: on_success
expire_in: 1 week
- export PATH="/usr/local/opt/bison/bin:$PATH"
- logfile=`mktemp`
- ci/build.sh 2>&1 | tee $logfile
- - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt
- - cat metrics.txt
+ - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" | tee metrics.txt
artifacts:
when: on_success
expire_in: 1 week
- windows/bin/setup-build-utilities.ps1 2>&1 | tee $logfile
- 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
- - cat metrics.txt
+ - echo "$CI_JOB_NAME-warnings $warnings_count" | tee metrics.txt
- python gen_version.py --output GRAPHVIZ_VERSION
# Package
- $Env:GV_VERSION=$( cat GRAPHVIZ_VERSION )
script:
- logfile=`mktemp`
- ci/out-of-source-build.sh |& tee $logfile
- - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt
- - cat metrics.txt
+ - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" | tee metrics.txt
needs:
- job: docker_build_ubuntu-21.10
artifacts: false
script:
- 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
- - cat metrics.txt
+ - echo "$CI_JOB_NAME-warnings `egrep -c '\<[CRWEF][[:digit:]]{4}\>' $logfile`" | tee metrics.txt
- python3 -m pylint --rcfile=.pylintrc --disable=fixme `find . -name '*.py' | xargs`
artifacts:
when: on_success