]> granicus.if.org Git - graphviz/commitdiff
CI: remove log file deletion steps
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 16 Feb 2022 19:44:41 +0000 (06:44 +1100)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 16 Feb 2022 19:44:41 +0000 (06:44 +1100)
The CI environments are transient and start fresh each time, so there is no need
to clean up temporary files.

.gitlab-ci.yml

index 9d2a60a8b671da1f4a8e77799c2fd6e540c3939e..616e94cedc2ec4df250a3e99b28e9f4653406865 100644 (file)
@@ -40,7 +40,6 @@ portable-source:
         - 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
@@ -62,7 +61,6 @@ portable-source:
         - 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
@@ -98,7 +96,6 @@ portable-source:
         - 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
@@ -152,7 +149,6 @@ portable-source:
         - 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
@@ -427,7 +423,6 @@ out-of-source-build:
         - 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
@@ -1502,7 +1497,6 @@ lint_pylint:
     - 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: