Bump CI to Ubuntu Bionic
language: c
os: linux
-dist: xenial
+dist: bionic
compiler:
- gcc
@@ -33,13 +33,16 @@ matrix:
# Check that clang-format doesn't detect some files are not formatted.
- name: "Formatting check"
compiler: clang
- addons:
apt:
sources:
- - llvm-toolchain-trusty-5.0
+ - sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
+ key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- - clang-format-5.0
- script: make format && git diff --exit-code
+ - clang-format-9
+ script:
+ - clang-format --version
+ - make format
+ - git diff --exit-code
# Submit coverage report to Coveralls.io, also test that prefixing works.
- name: "Coverage report"
compiler: gcc
