reactos/.travis.yml
Victor Perevertkin 0c64aed86a [REACTOS] Introduce .clang-format file
And set up a Travis job for checking formatting on PRs
2019-12-28 01:23:49 +02:00

35 lines
881 B
YAML

dist: bionic
language: cpp
addons:
apt:
sources:
- 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-9
git:
depth: 1
env:
global:
- DO_BUILD=0
- DO_CHECK=0
- CLFORMAT_BINARY=clang-format-9
jobs:
- DO_BUILD=1
- DO_CHECK=1
before_install:
- ln -s /usr/share/clang/clang-format-9/clang-format-diff.py ./sdk/tools/;
- wget https://svn.reactos.org/amine/RosBEBinFull.tar.gz -O RosBE.tar.gz
- tar -xzf RosBE.tar.gz
- echo 'mkdir ../Build && cd ../Build && $TRAVIS_BUILD_DIR/configure.sh -DENABLE_ROSTESTS=1 && ninja -k 0 && ninja bootcd' > tmp_file
script:
- if [ $DO_BUILD == "1" ]; then
./RosBEBinFull/RosBE.sh < tmp_file;
elif [ $DO_CHECK == "1" ]; then
./sdk/tools/check_code_format.sh;
fi