2017-07-25 18:48:23 +00:00
|
|
|
language: go
|
2019-01-19 11:57:26 +00:00
|
|
|
dist: xenial
|
2017-07-25 18:48:23 +00:00
|
|
|
|
|
|
|
go:
|
2019-03-14 13:17:31 +00:00
|
|
|
- "1.11"
|
|
|
|
- "1.12"
|
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-07-31 11:08:52 +00:00
|
|
|
- stage: fuzzit.dev
|
2019-07-30 12:13:04 +00:00
|
|
|
if: branch = master AND type IN (push)
|
|
|
|
go: 1.12.x
|
|
|
|
script:
|
2019-07-31 11:08:52 +00:00
|
|
|
- ./fuzzit.sh
|