diff options
author | Nick Terrell <terrelln@fb.com> | 2020-08-20 01:19:11 (GMT) |
---|---|---|
committer | Nick Terrell <terrelln@fb.com> | 2020-08-20 01:48:10 (GMT) |
commit | e97ff296272799d827b9a2dc0c9a2710b3a5b85c (patch) | |
tree | 27b3a8034b71ed4b1f6e3c83cf8800b10c6f005f /ossfuzz | |
parent | fa5435bca9140c10bd1756d96e1b52a11e88d0ad (diff) | |
download | lz4-e97ff296272799d827b9a2dc0c9a2710b3a5b85c.zip lz4-e97ff296272799d827b9a2dc0c9a2710b3a5b85c.tar.gz lz4-e97ff296272799d827b9a2dc0c9a2710b3a5b85c.tar.bz2 |
[CI][Fuzz] Fix Travis-CI fuzzer tests
Fixes #781
Diffstat (limited to 'ossfuzz')
-rwxr-xr-x | ossfuzz/travisoss.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ossfuzz/travisoss.sh b/ossfuzz/travisoss.sh index 5ea884c..218f4d6 100755 --- a/ossfuzz/travisoss.sh +++ b/ossfuzz/travisoss.sh @@ -12,7 +12,12 @@ then fi # Modify the oss-fuzz Dockerfile so that we're checking out the current branch on travis. -sed -i "s@https://github.com/lz4/lz4.git@-b $TRAVIS_BRANCH https://github.com/lz4/lz4.git@" /tmp/ossfuzz/projects/lz4/Dockerfile +if [ "x${TRAVIS_PULL_REQUEST}" -eq "xfalse" ] +then + sed -i "s@https://github.com/lz4/lz4.git@-b ${TRAVIS_BRANCH} https://github.com/lz4/lz4.git@" /tmp/ossfuzz/projects/lz4/Dockerfile +else + sed -i "s@https://github.com/lz4/lz4.git@-b ${TRAVIS_PULL_REQUEST_BRANCH} https://github.com/${TRAVIS_PULL_REQUEST_SLUG}.git@" /tmp/ossfuzz/projects/lz4/Dockerfile +fi # Try and build the fuzzers pushd /tmp/ossfuzz |