mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-09 21:32:31 +00:00
![Emmanuel Odeke](/assets/img/avatar_default.png)
For https://github.com/golang/go/issues/21337. Since the introduction of aliases is in Go1.9 but Go1.9 hasn't yet been officially released, let's use go1.9rc1 which is supported on Travis CI by their Go version getter gimme https://github.com/travis-ci/gimme instead of against go1.8.1. This solves the problem on which our vendored code is updated using Go1.9* syntax but is running against Go1.8* in Travis CI tests.
30 lines
986 B
YAML
30 lines
986 B
YAML
language: go
|
|
dist: trusty
|
|
|
|
go:
|
|
- 1.9rc1
|
|
|
|
before_install:
|
|
- echo $PATH
|
|
- export PATH=`echo $PATH | sed -e 's/:\/usr\/local\/clang-3.5.0\/bin//'`
|
|
- wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.4_amd64.deb
|
|
- mkdir ./libc
|
|
- dpkg-deb -x ./libstdc++6_5.4.0-6ubuntu1~16.04.4_amd64.deb ./libc
|
|
- export LD_LIBRARY_PATH=`pwd`/libc/usr/lib/x86_64-linux-gnu/
|
|
- wget http://releases.llvm.org/4.0.1/clang+llvm-4.0.1-x86_64-linux-gnu-debian8.tar.xz
|
|
- tar -xf ./clang+llvm-4.0.1-x86_64-linux-gnu-debian8.tar.xz
|
|
- sudo cp clang+llvm-4.0.1-x86_64-linux-gnu-debian8/bin/clang-format /usr/local/bin/
|
|
- which clang-format
|
|
- clang-format --version
|
|
|
|
install: true
|
|
|
|
script:
|
|
- make presubmit
|
|
- test -z $(git diff --name-only) # check that the diff is empty after formatting the code
|
|
|
|
# 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
|