mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
0c64aed86a
And set up a Travis job for checking formatting on PRs
35 lines
881 B
YAML
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
|