mirror of
https://github.com/reactos/reactos.git
synced 2024-11-26 21:13:30 +08:00
cdb6af05a7
The configuration is not final yet and we have a lot of files that don't follow the suggested style. At this point, having it active in CI means builds are essentially always red, and we miss actual compilation errors.
35 lines
864 B
YAML
35 lines
864 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
|
|
|
|
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
|