1language: go
2dist: trusty
3
4go:
5  - "1.9"
6  - "1.10"
7
8before_install:
9  - echo $PATH
10  - export PATH=`echo $PATH | sed -e 's/:\/usr\/local\/clang-[0-9].[0-9].[0-9]\/bin//'`
11  - wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb
12  - mkdir ./libc
13  - dpkg-deb -x ./libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb ./libc
14  - export LD_LIBRARY_PATH=`pwd`/libc/usr/lib/x86_64-linux-gnu/
15  - wget http://releases.llvm.org/6.0.1/clang+llvm-6.0.1-x86_64-linux-gnu-ubuntu-14.04.tar.xz
16  - tar -xf ./clang+llvm-6.0.1-x86_64-linux-gnu-ubuntu-14.04.tar.xz
17  - sudo cp clang+llvm-6.0.1-x86_64-linux-gnu-ubuntu-14.04/bin/clang-format /usr/local/bin/
18  - which clang-format
19  - clang-format --version
20
21install: true
22
23script:
24  - make install_prerequisites
25  - make presubmit
26
27# If the build fails because some code in not formatted, it's nice to see the diffs after formatting.
28after_failure:
29  - git diff --name-only
30  - git diff
31