Replace CIs by Github Actions (#294)

This commit is contained in:
Thomas Pelletier
2019-09-09 19:44:45 -07:00
committed by GitHub
parent 4d5afd743f
commit b40204d36a
11 changed files with 231 additions and 295 deletions
-14
View File
@@ -1,12 +1,6 @@
#!/bin/bash
set -xe
# fuzz only in one configuration
# there's no benefit to fuzzing with different go versions
if [ -z ${WITH_FUZZ} ]; then
exit 0
fi
# go-fuzz doesn't support modules yet, so ensure we do everything
# in the old style GOPATH way
export GO111MODULE="off"
@@ -28,13 +22,5 @@ clang -fsanitize=fuzzer ${TARGET}.a -o ${TARGET}
wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.23/fuzzit_Linux_x86_64
chmod a+x fuzzit
# upload fuzz target for long fuzz testing on fuzzit.dev server
# or run locally for regression, depending on --type
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
TYPE=fuzzing
else
TYPE=local-regression
fi
# TODO: change kkowalczyk to go-toml and create toml-fuzzer target there
./fuzzit create job --type $TYPE go-toml/${TARGET} ${TARGET}