Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECSS Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AcubeSat-OBC
ECSS Services
Commits
cb9cd49d
Commit
cb9cd49d
authored
6 years ago
by
kongr45gpen
Browse files
Options
Downloads
Patches
Plain Diff
Add tests to CI
parent
44860441
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-0
15 additions, 0 deletions
.gitlab-ci.yml
with
15 additions
and
0 deletions
.gitlab-ci.yml
+
15
−
0
View file @
cb9cd49d
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment