mirror of https://github.com/akheron/jansson
Use the correct branch for OSS Fuzz as well.
This commit is contained in:
parent
a6f436fefc
commit
7feae084b1
|
@ -21,13 +21,15 @@ if [[ ${TRAVIS_PULL_REQUEST} != "false" ]]
|
||||||
then
|
then
|
||||||
# Pull-request branch
|
# Pull-request branch
|
||||||
REPO=${TRAVIS_PULL_REQUEST_SLUG}
|
REPO=${TRAVIS_PULL_REQUEST_SLUG}
|
||||||
|
BRANCH=${TRAVIS_PULL_REQUEST_BRANCH}
|
||||||
else
|
else
|
||||||
# Push build.
|
# Push build.
|
||||||
REPO=${TRAVIS_REPO_SLUG}
|
REPO=${TRAVIS_REPO_SLUG}
|
||||||
|
BRANCH=${TRAVIS_BRANCH}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Modify the oss-fuzz Dockerfile so that we're checking out the current branch on travis.
|
# Modify the oss-fuzz Dockerfile so that we're checking out the current branch on travis.
|
||||||
sed -i "s@https://github.com/akheron/jansson.git@-b ${TRAVIS_BRANCH} https://github.com/${REPO}.git@" /tmp/ossfuzz/projects/${PROJECT_NAME}/Dockerfile
|
sed -i "s@https://github.com/akheron/jansson.git@-b ${BRANCH} https://github.com/${REPO}.git@" /tmp/ossfuzz/projects/${PROJECT_NAME}/Dockerfile
|
||||||
|
|
||||||
# Try and build the fuzzers
|
# Try and build the fuzzers
|
||||||
pushd /tmp/ossfuzz
|
pushd /tmp/ossfuzz
|
||||||
|
|
Loading…
Reference in New Issue