Commit 4beeae32 authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Add warning as error when compiling c++ pipelines.

parent 9e2dce6e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ build:ubuntu_cpp:
  script:
    - cd $BUILD_DIR
    # WERROR=OFF until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/137 is not closed
    - cmake  -DCMAKE_BUILD_TYPE=Release -DWERROR=OFF -DCOVERAGE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DPYBIND=0 ..
    - cmake  -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DPYBIND=0 ..
    - make -j4 all install


@@ -64,7 +64,7 @@ build:ubuntu_cpp:g++:
    - apt-get install -y g++-$Gplusplus_VERSION
    - export CXX=/usr/bin/g++-$Gplusplus_VERSION
    # WERROR=OFF until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/137 is not closed
    - cmake -DCMAKE_BUILD_TYPE=Release -DWERROR=OFF -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
    - cmake -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
    - make -j4 all install

build:ubuntu_cpp:clang:
@@ -82,7 +82,7 @@ build:ubuntu_cpp:clang:
    - cd $BUILD_DIR
    - apt-get install -y clang-$CLANG_VERSION
    # WERROR=OFF until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/137 is not closed
    - cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++-$CLANG_VERSION -DCMAKE_BUILD_TYPE=Release -DWERROR=OFF -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
    - cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++-$CLANG_VERSION -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
    - make -j4 all install