language: c

before_script:
  - echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" | sudo tee -a /etc/apt/sources.list
  - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
  - sudo apt-get update -qq
  - sudo apt-get install clang-format-3.9 -y

compiler:
  - clang
  - gcc

install:
 - wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl
 - wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/spelling.txt
 - wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/const_structs.checkpatch

script:
 - CFLAGS="-g -fsanitize=address -fno-omit-frame-pointer -Wall -Werror" make check
 - perl checkpatch.pl --no-tree -f --strict --show-types --ignore NEW_TYPEDEFS --ignore PREFER_KERNEL_TYPES --ignore SPLIT_STRING *.c *.h
 - ./check-format.sh

language: c

before_script:
  - echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" | sudo tee -a /etc/apt/sources.list
  - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
  - sudo apt-get update -qq
  - sudo apt-get install clang-format-3.9 -y

compiler:
  - clang
  - gcc

install:
 - wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl
 - wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/spelling.txt
 - wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/const_structs.checkpatch

script:
 - CFLAGS="-g -fsanitize=address -fno-omit-frame-pointer -Wall -Werror" make check
 - perl checkpatch.pl --no-tree -f --strict --show-types --ignore NEW_TYPEDEFS --ignore PREFER_KERNEL_TYPES --ignore SPLIT_STRING --ignore UNNECESSARY_PARENTHESES *.c *.h
 - ./check-format.sh

Disable new checkpatch check for brackets
Disable new checkpatch check for brackets

Until code is compliant

Signed-off-by: Mark Ryan <88ffc4093c40652fbbf052f026a8b6147509f0aa@gmail.com>
