Skip to content
Snippets Groups Projects
Commit 1f391e11 authored by kongr45gpen's avatar kongr45gpen
Browse files

Move continous integration to separate .sh files

parent 2335fff4
No related branches found
No related tags found
No related merge requests found
......@@ -17,12 +17,12 @@ build:
cppcheck:
script:
- cppcheck --enable=all --error-exitcode=1 -I inc src
- bash -x ci/cppcheck.sh
vera:
script:
- vera++ --error --profile custom `find src inc -type f -regextype posix-egrep -regex '.*\.(cpp|hpp|c|h)'`
- bash -x ci/vera.sh
clang-tidy:
script:
- cd ci && clang-tidy `find ../src/ -type f -regextype posix-egrep -regex '.*\.(cpp|hpp|c|h)'` -- -std=c++11 -I../inc
- bash -x ci/clang-tidy.sh
#!/usr/bin/env bash
#
# Code style checks using clang-tidy
#
# Usage:
# $ ci/clang-tidy.sh
#
cd "$(dirname "$0")"
clang-tidy `find ../src/ -type f -regextype posix-egrep -regex '.*\.(cpp|hpp|c|h)'` -- -std=c++11 -I../inc
#!/usr/bin/env bash
#
# Static code analysis using cppchecl
#
# Usage:
# $ ci/cppcheck.sh
#
cd "$(dirname "$0")/.."
cppcheck --enable=all --error-exitcode=1 -I inc src
#!/usr/bin/env bash
#
# Code style checks using vera++
#
# Usage:
# $ ci/vera.sh
#
cd "$(dirname "$0")/.."
vera++ --error --profile custom `find src inc -type f -regextype posix-egrep -regex '.*\.(cpp|hpp|c|h)'`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment