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
2590121b
Unverified
Commit
2590121b
authored
5 years ago
by
Grigoris Pavlakis
Committed by
kongr45gpen
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
2ecbc48b
No related branches found
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
+29
-29
29 additions, 29 deletions
.gitlab-ci.yml
with
29 additions
and
29 deletions
.gitlab-ci.yml
+
29
−
29
View file @
2590121b
image
:
l
ycantropos/cmake
image
:
l
ightspot21/acubesat-ci
variables
:
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
...
@@ -14,13 +14,13 @@ stages:
...
@@ -14,13 +14,13 @@ stages:
-
test
-
test
-
deploy
-
deploy
before_script
:
#
before_script:
-
apt-get update -qq && apt-get -qq -y install python3-pip && python3 -m pip install --upgrade pip
#
- apt-get update -qq && apt-get -qq -y install python3-pip && python3 -m pip install --upgrade pip
-
python3 -V
#
- python3 -V
-
python3 -m pip --version
#
- python3 -m pip --version
-
g++ --version
#
- g++ --version
-
cat /etc/*-release
#
- cat /etc/*-release
-
python3 -m pip install gcovr
#
- python3 -m pip install gcovr
build
:
build
:
stage
:
build
stage
:
build
...
@@ -29,10 +29,10 @@ build:
...
@@ -29,10 +29,10 @@ build:
GCC_COLORS
:
"
error=31;1:warning=35;1:note=36;1:range1=32:range2=34:locus=39;1:quote=39;1:fixit-insert=32:fixit-delete=31:diff-filename=39;1:diff-hunk=32:diff-delete=31:diff-insert=32:type-diff=32;1"
GCC_COLORS
:
"
error=31;1:warning=35;1:note=36;1:range1=32:range2=34:locus=39;1:quote=39;1:fixit-insert=32:fixit-delete=31:diff-filename=39;1:diff-hunk=32:diff-delete=31:diff-insert=32:type-diff=32;1"
CLICOLOR_FORCE
:
1
# Necessary for cmake to output colours
CLICOLOR_FORCE
:
1
# Necessary for cmake to output colours
script
:
script
:
-
cmake . -DCMAKE_CXX_FLAGS="-Werror -fdiagnostics-color=always"
#
- cmake . -DCMAKE_CXX_FLAGS="-Werror -fdiagnostics-color=always"
-
make -j4
#
- make -j4
-
make clean
#
- make clean
-
cmake . -DCMAKE_CXX_FLAGS="-Wall -Wextra -fdiagnostics-color=always"
# Build again, but with more warnings
-
cmake . -DCMAKE_CXX_FLAGS="-Wall -Wextra
-Werror
-fdiagnostics-color=always"
# Build again, but with more warnings
-
make -j4
-
make -j4
tests
:
tests
:
...
@@ -54,8 +54,8 @@ tests:
...
@@ -54,8 +54,8 @@ tests:
cppcheck
:
cppcheck
:
stage
:
build
stage
:
build
before_script
:
before_script
:
-
echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list
#
- echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list
-
apt-get update -qq && apt-get -t testing install -y cppcheck
#
- apt-get update -qq && apt-get -t testing install -y cppcheck
-
cppcheck --version
-
cppcheck --version
script
:
script
:
-
ci/cppcheck.sh
-
ci/cppcheck.sh
...
@@ -64,8 +64,8 @@ cppcheck-misra:
...
@@ -64,8 +64,8 @@ cppcheck-misra:
stage
:
build
stage
:
build
before_script
:
before_script
:
# install cppcheck from the testing repos in order to get the latest version
# install cppcheck from the testing repos in order to get the latest version
-
echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list
#
- echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list
-
apt-get update -qq && apt-get -t testing install -y cppcheck && apt-get -t testing install -y python3
#
- apt-get update -qq && apt-get -t testing install -y cppcheck && apt-get -t testing install -y python3
-
cppcheck --version
-
cppcheck --version
script
:
script
:
-
ci/cppcheck-misra.sh
-
ci/cppcheck-misra.sh
...
@@ -73,25 +73,25 @@ cppcheck-misra:
...
@@ -73,25 +73,25 @@ cppcheck-misra:
vera
:
vera
:
stage
:
build
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
-
cp ci/vera.profile /usr/lib/vera++/profiles/custom
-
cp ci/vera.profile /usr/lib/vera++/profiles/custom
script
:
script
:
-
ci/vera.sh
-
ci/vera.sh
clang-tidy
:
#
clang-tidy:
stage
:
build
#
stage: build
variables
:
#
variables:
GIT_SUBMODULE_STRATEGY
:
normal
#
GIT_SUBMODULE_STRATEGY: normal
TERM
:
xterm-color
#
TERM: xterm-color
before_script
:
#
before_script:
# Installing the `sid` repository to get the latest version of clang
# Installing the `sid` repository to get the latest version of clang
-
echo deb http://deb.debian.org/debian sid main > /etc/apt/sources.list
#
- echo deb http://deb.debian.org/debian sid main > /etc/apt/sources.list
-
apt-get update -qq && apt-get -t sid install -y -qq clang-tidy-7
#
- apt-get update -qq && apt-get -t sid install -y -qq clang-tidy-7
-
clang-tidy-7 --version
#
- clang-tidy-7 --version
script
:
#
script:
# Running with `script` to give clang a tty so that it outputs colours
# Running with `script` to give clang a tty so that it outputs colours
-
script -c "bash -x ci/clang-tidy.sh"
#
- script -c "bash -x ci/clang-tidy.sh"
pages
:
pages
:
stage
:
deploy
stage
:
deploy
...
@@ -103,7 +103,7 @@ pages:
...
@@ -103,7 +103,7 @@ pages:
variables
:
variables
:
GIT_SUBMODULE_STRATEGY
:
normal
GIT_SUBMODULE_STRATEGY
:
normal
script
:
script
:
-
apt-get install -qq -y doxygen graphviz lcov
#
- apt-get install -qq -y doxygen graphviz lcov
after_script
:
after_script
:
-
./ci/pages_deploy.sh
-
./ci/pages_deploy.sh
-
echo -e "\e[1;36mPublic directory contents\e[0m" && ls -l public/coverage
# Print directory contents for debugging
-
echo -e "\e[1;36mPublic directory contents\e[0m" && ls -l public/coverage
# Print directory contents for debugging
...
...
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