forked from nasa/ci_lab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nasa#31 from nasa/ic-20200108
Integration Candidate 20200108
- Loading branch information
Showing
9 changed files
with
505 additions
and
496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
dist: bionic | ||
sudo: required | ||
language: | ||
- c | ||
compiler: | ||
- gcc | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- cmake | ||
|
||
before_install: | ||
- sudo apt-get install cppcheck | ||
- cppcheck --version | ||
# for clang-format 10 | ||
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | ||
- sudo add-apt-repository 'deb http:https://apt.llvm.org/bionic/ llvm-toolchain-bionic main' | ||
- sudo apt-get update | ||
- sudo apt-get install clang-format-10 | ||
- clang-format-10 --version | ||
|
||
|
||
script: | ||
# Get bundle (doesn't populate submodules, not needed for style enforcement) | ||
- cd .. | ||
- git clone https://github.com/nasa/cFS.git | ||
- mv ci_lab cFS/apps | ||
- cd cFS/apps/ci_lab | ||
# Enforce formatting | ||
- find . -name "*.[ch]" -exec clang-format-10 -i -style=file {} + | ||
- git diff > style_differences.txt | ||
- | | ||
if [[ -s style_differences.txt ]]; then | ||
echo "You must fix style differences before submitting a pull request" | ||
echo "" | ||
cat style_differences.txt | ||
exit -1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.