Skip to content
Snippets Groups Projects
Unverified Commit 2590121b authored by Grigoris Pavlakis's avatar Grigoris Pavlakis Committed by kongr45gpen
Browse files

Update .gitlab-ci.yml

parent 2ecbc48b
No related branches found
No related tags found
No related merge requests found
image: lycantropos/cmake image: lightspot21/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
......
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