aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2021-05-06 09:24:35 -0700
committerGerald Combs <gerald@wireshark.org>2021-05-06 09:24:35 -0700
commit458bc931713b776d3dfcae24c1a18a660270c1ba (patch)
tree2ffa28d447d2d79cd9e4607eb8539cdef6736904 /.gitlab-ci.yml
parentca86d0ab38fdaed6ba2249bb976e73d02d903dc5 (diff)
GitLab CI: Fix the fuzzing before and after scripts.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7baa072729..738ae65575 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -593,9 +593,12 @@ sloccount:
MIN_PLUGINS: 10
MAX_PASSES: 15
before_script:
+ - mkdir -p ccache
# Signal after_script, which runs in its own shell.
- echo "export FUZZ_PASSED=true" > /tmp/fuzz_result.sh
- mkdir /tmp/fuzz
+ - mkdir build
+ - cd build
after_script:
- . /tmp/fuzz_result.sh
- if $FUZZ_PASSED ; then exit 0 ; fi
@@ -609,6 +612,9 @@ sloccount:
aws s3 cp "$FUZZ_CAPTURE" "$S3_DESTINATION_FUZZ/"
aws s3 cp "$FUZZ_ERRORS" "$S3_DESTINATION_FUZZ/"
fi
+ # The cache should be large enough to be useful but it shouldn't take
+ # too long to restore+save each run.
+ - ccache --max-size $( du --summarize --block-size=1M "$CI_PROJECT_DIR/build" | awk '{printf ("%dM", $1 * 1.5)}' )
fuzz-asan:
extends: .fuzz-ubuntu