message: Add a warnings step to check for warnings and allow failure.
diff: @@ -4,6 +4,7 @@ stages:
  - sync
  - build
  - test
  + - warnings
  - deploy
  - QoS_tools
  - benchmark-build
  @@ -21,6 +22,7 @@ stages:
  BUILD_REFERENCE: "ON"
  BUILD_OMP: "OFF"
  BUILD_CUDA: "OFF"
  + CXX_FLAGS: ""
  EXTRA_CMAKE_FLAGS: ""
  .before_script_template: &default_before_script
  @@ -49,6 +51,7 @@ stages:
  -DGINKGO_BUILD_REFERENCE=${BUILD_REFERENCE}
  -DGINKGO_BUILD_OMP=${BUILD_OMP} -DGINKGO_BUILD_CUDA=${BUILD_CUDA}
  -DGINKGO_BUILD_TESTS=ON -DGINKGO_BUILD_EXAMPLES=ON
  + -DCMAKE_CXX_FLAGS="${CXX_FLAGS}"
  - make -j$(grep "core id" /proc/cpuinfo | sort -u | wc -l)
  artifacts:
  paths:
  @@ -85,18 +88,6 @@ sync:
  - schedules
  # Build jobs
  -
  -# Build job with pedantic warnings as errors.
  -build/cuda100/gcc/all/debug-warnings:
  - <<: *default_build
  - image: localhost:5000/gko-cuda100-gnu7-llvm60
  - variables:
  - <<: *default_variables
  - BUILD_OMP: "ON"
  - BUILD_CUDA: "ON"
  - EXTRA_CMAKE_FLAGS: &cuda_flags
  - -DGINKGO_COMPILER_FLAGS="-Werror=pedantic"
  -
  build/cuda90/gcc/all/debug:
  <<: *default_build
  image: localhost:5000/gko-cuda90-gnu5-llvm39
  @@ -342,6 +333,20 @@ test/nocuda/clang/omp/release:
  - build/nocuda/clang/omp/release
  +# Job with important warnings as error
  +warnings:
  + <<: *default_build
  + stage: warnings
  + image: localhost:5000/gko-cuda100-gnu7-llvm60
  + variables:
  + <<: *default_variables
  + BUILD_OMP: "ON"
  + BUILD_CUDA: "ON"
  + CXX_FLAGS: "-Werror=pedantic"
  + dependencies: []
  + allow_failure: yes
  +
  +
  # Deploy documentation to github-pages
  gh-pages:
  stage: deploy
  