2019-12-24 10:55:30 +00:00
|
|
|
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
|
2017-10-08 12:38:07 +00:00
|
|
|
|
|
|
|
git:
|
2019-12-24 10:55:30 +00:00
|
|
|
depth: 1
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- DO_BUILD=0
|
|
|
|
- DO_CHECK=0
|
|
|
|
- CLFORMAT_BINARY=clang-format-9
|
|
|
|
jobs:
|
|
|
|
- DO_BUILD=1
|
2017-10-08 12:38:07 +00:00
|
|
|
|
2019-12-24 10:55:30 +00:00
|
|
|
before_install:
|
|
|
|
- ln -s /usr/share/clang/clang-format-9/clang-format-diff.py ./sdk/tools/;
|
2017-10-08 13:54:43 +00:00
|
|
|
- wget https://svn.reactos.org/amine/RosBEBinFull.tar.gz -O RosBE.tar.gz
|
|
|
|
- tar -xzf RosBE.tar.gz
|
2018-09-16 12:07:46 +00:00
|
|
|
- echo 'mkdir ../Build && cd ../Build && $TRAVIS_BUILD_DIR/configure.sh -DENABLE_ROSTESTS=1 && ninja -k 0 && ninja bootcd' > tmp_file
|
2017-10-08 13:54:43 +00:00
|
|
|
|
|
|
|
script:
|
2019-12-24 10:55:30 +00:00
|
|
|
- if [ $DO_BUILD == "1" ]; then
|
|
|
|
./RosBEBinFull/RosBE.sh < tmp_file;
|
|
|
|
elif [ $DO_CHECK == "1" ]; then
|
|
|
|
./sdk/tools/check_code_format.sh;
|
|
|
|
fi
|