diff options
author | Petri Lehtinen <petri@digip.org> | 2020-12-14 20:36:03 +0200 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2021-01-14 21:12:02 +0200 |
commit | 0bc4325222b8a4ef818aeda8364dd89f8800709f (patch) | |
tree | fe2527d2ca27fe3cf6fb91507701631cd7e17a90 /test | |
parent | fd3e9e3051fa17d293db7974863d84b512457528 (diff) | |
download | jansson-0bc4325222b8a4ef818aeda8364dd89f8800709f.zip jansson-0bc4325222b8a4ef818aeda8364dd89f8800709f.tar.gz jansson-0bc4325222b8a4ef818aeda8364dd89f8800709f.tar.bz2 |
GitHub Actions
Diffstat (limited to 'test')
-rwxr-xr-x | test/ossfuzz/travisoss.sh | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/test/ossfuzz/travisoss.sh b/test/ossfuzz/travisoss.sh deleted file mode 100755 index ddcfa07..0000000 --- a/test/ossfuzz/travisoss.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -set -ex - -PROJECT_NAME=jansson - -# Clone the oss-fuzz repository -git clone https://github.com/google/oss-fuzz.git /tmp/ossfuzz - -if [[ ! -d /tmp/ossfuzz/projects/${PROJECT_NAME} ]] -then - echo "Could not find the ${PROJECT_NAME} project in ossfuzz" - - # Exit with a success code while the jansson project is not expected to exist - # on oss-fuzz. - exit 0 -fi - -# Work out which repo to clone from, inside Docker -if [[ ${TRAVIS_PULL_REQUEST} != "false" ]] -then - # Pull-request branch - REPO=${TRAVIS_PULL_REQUEST_SLUG} - BRANCH=${TRAVIS_PULL_REQUEST_BRANCH} -else - # Push build. - REPO=${TRAVIS_REPO_SLUG} - BRANCH=${TRAVIS_BRANCH} -fi - -# 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 ${BRANCH} https://github.com/${REPO}.git@" /tmp/ossfuzz/projects/${PROJECT_NAME}/Dockerfile - -# Try and build the fuzzers -pushd /tmp/ossfuzz -python infra/helper.py build_image --pull ${PROJECT_NAME} -python infra/helper.py build_fuzzers ${PROJECT_NAME} -popd |