Merge pull request #901 from terrelln/travis

[CI][Fuzz] Fix Travis-CI fuzzer tests
This commit is contained in:
Yann Collet 2020-08-19 20:07:50 -07:00 committed by GitHub
commit 02ee3559f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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