Skip to content

Commit

Permalink
Another stab at fixing the CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed Oct 12, 2020
1 parent dc1f829 commit 977e313
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ matrix:
- sudo apt install clang-tidy-10 clang-format-10
- clang++-10 -E -x c++ - -v < /dev/null # Print the Clang configuration for troubleshooting purposes.

# DEBUG
# DEBUG + format check
- cmake -DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 tests -DCMAKE_BUILD_TYPE=Debug
- make VERBOSE=1 && make test
- make format VERBOSE=1
- 'modified="$(git status --porcelain --untracked-files=no)"'
- echo "${modified}"
- 'if [ -n "$modified" ]; then echo "Run make format to reformat the code properly."; exit 1; fi'
- make clean

# RELEASE (skip static analysis because it is done in the DEBUG configuration)
Expand All @@ -83,12 +87,6 @@ matrix:
- make VERBOSE=1 && make test
- make clean

# Format check
- make format VERBOSE=1
- 'modified="$(git status --porcelain --untracked-files=no)"'
- echo "${modified}"
- 'if [ -n "$modified" ]; then echo "Run make format to reformat the code properly."; exit 1; fi'

# -------------------- AVR GCC --------------------
- language: c
addons:
Expand Down

0 comments on commit 977e313

Please sign in to comment.