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

Add tests to CI

parent 44860441
No related branches found
No related tags found
No related merge requests found
image: rikorose/gcc-cmake image: rikorose/gcc-cmake
stages:
- build
- test
before_script: before_script:
- g++ --version - g++ --version
build: build:
stage: build
script: script:
- cmake . -DCMAKE_CXX_FLAGS="-Werror" - cmake . -DCMAKE_CXX_FLAGS="-Werror"
- make -j4 - make -j4
...@@ -11,7 +16,15 @@ build: ...@@ -11,7 +16,15 @@ build:
- cmake . -DCMAKE_CXX_FLAGS="-Wall -Wextra" # Build again, but with more warnings - cmake . -DCMAKE_CXX_FLAGS="-Wall -Wextra" # Build again, but with more warnings
- make -j4 - make -j4
tests:
stage: test
script:
- cmake .
- make tests -j4
- ./tests
cppcheck: cppcheck:
stage: build
before_script: before_script:
- apt-get update -qq && apt-get install -y -qq cppcheck - apt-get update -qq && apt-get install -y -qq cppcheck
- cppcheck --version - cppcheck --version
...@@ -19,6 +32,7 @@ cppcheck: ...@@ -19,6 +32,7 @@ cppcheck:
- bash -x ci/cppcheck.sh - bash -x ci/cppcheck.sh
vera: vera:
stage: build
before_script: before_script:
- apt-get update -qq && apt-get install -y -qq vera++ - apt-get update -qq && apt-get install -y -qq vera++
- vera++ --version - vera++ --version
...@@ -27,6 +41,7 @@ vera: ...@@ -27,6 +41,7 @@ vera:
- bash -x ci/vera.sh - bash -x ci/vera.sh
clang-tidy: clang-tidy:
stage: build
before_script: before_script:
- apt-get update -qq && apt-get install -y -qq clang-tidy-4.0 - apt-get update -qq && apt-get install -y -qq clang-tidy-4.0
- clang-tidy-4.0 --version - clang-tidy-4.0 --version
......
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