2017-07-25 18:48:23 +00:00
|
|
|
language: go
|
2019-01-19 11:57:26 +00:00
|
|
|
dist: xenial
|
2019-08-09 07:46:28 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2017-07-25 18:48:23 +00:00
|
|
|
go:
|
2019-03-14 13:17:31 +00:00
|
|
|
- "1.11"
|
|
|
|
- "1.12"
|
2019-12-27 18:01:36 +00:00
|
|
|
go_import_path: github.com/google/syzkaller
|
2017-07-25 18:48:23 +00:00
|
|
|
|
2019-06-25 11:55:46 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/go-build
|
|
|
|
- $HOME/gopath/pkg/mod
|
|
|
|
|
2017-07-25 18:48:23 +00:00
|
|
|
before_install:
|
2019-05-07 12:14:38 +00:00
|
|
|
# xenial packages are broken and do no allow to cross-compile for both 386 and arm.
|
|
|
|
# 386 requires gcc-multilib installed and arm requires gcc-arm-linux-gnueabi,
|
|
|
|
# but these packages are conflicting. This is a hacky way to install 386 headers.
|
|
|
|
- sudo dpkg --add-architecture i386
|
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get install -y -q linux-libc-dev:i386 lib32gcc-5-dev lib32stdc++-5-dev
|
2017-07-25 18:48:23 +00:00
|
|
|
|
|
|
|
install: true
|
|
|
|
|
|
|
|
script:
|
2018-03-20 12:26:51 +00:00
|
|
|
- make install_prerequisites
|
2017-07-25 18:48:23 +00:00
|
|
|
- make presubmit
|
|
|
|
|
2018-12-31 11:51:07 +00:00
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
|
2017-07-25 18:48:23 +00:00
|
|
|
# If the build fails because some code in not formatted, it's nice to see the diffs after formatting.
|
|
|
|
after_failure:
|
|
|
|
- git diff --name-only
|
|
|
|
- git diff
|
2019-07-30 12:13:04 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
2019-08-09 07:46:28 +00:00
|
|
|
- stage: fuzzit.dev (regression)
|
|
|
|
if: branch = master AND type IN (pull_request)
|
|
|
|
go: 1.12.x
|
|
|
|
script:
|
2019-09-13 13:13:36 +00:00
|
|
|
- ./fuzzit.sh local-regression
|
2019-08-09 07:46:28 +00:00
|
|
|
|
|
|
|
- stage: fuzzit.dev (fuzzing)
|
2019-07-30 12:13:04 +00:00
|
|
|
if: branch = master AND type IN (push)
|
|
|
|
go: 1.12.x
|
2019-08-09 07:46:28 +00:00
|
|
|
env:
|
|
|
|
secure: "TEXvLRUk/cmNwksHLTihVVyBWoU76EhAXkCCdLbn1FtfqCOzzMnQm02oUYcufLrVWIuVDUEUa9Tq+BrS2LGN2oTJEzk8bdQxeiztiRwbPocRLY3y3BNWWk89Vvu/eC/nPPoeRKZ7k3VZDbAk/+cPyXNMVaxBO7rwMqrne90txgTunX9V7U9Rr7b2phECBEF+riWtO3kWumZZG9qGq6NRmEcsoMOHgF2WGmxeAkAaU8xKdYOYbbUIns3cSf+bGWnFKOxSDkVDOOyKxdAc6OufejbGU4rjspty6ueXaoL69Rq5+7GOUflqLTMO8WUhpc65DPY3+9G2iH1p7U4v10Vk2V6qbQw83DDeucjSH23zIbNkjjYHSV5IMNwAMcEG5fwANfmnmQeVQCJJkwRBZufD1T+CLf9gqVldLG9qUGPI+ySli2J0oVAQ1rvMhKgR44Ipb3FQm0XBYhYXa3i08ojVXEtG8PNGHgrmOJnhUzC/BA+m9QKncxqMuISsBdlRnuU37DD0HeHZ6NTWvGy7gv2mhnCHc7AWuveBsc3XDvSfK8U3tB9LxS2OdRKWQdhnJBKowjAZ55lvTP0AgagQL+mPBQ7qJ2N8OT/oDRtN6tkY+DIEi8JTie0XOitNbY9AaF4hRFcixpesthvTEdOzx//mURXZXiPYQwyrjf9u1dwEpfA="
|
2019-07-30 12:13:04 +00:00
|
|
|
script:
|
2019-08-09 07:46:28 +00:00
|
|
|
- ./fuzzit.sh fuzzing
|