mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
guideline checks as test
This commit is contained in:
parent
87ce9e6a18
commit
96e26565f2
@ -140,6 +140,11 @@ test_ubuntu:
|
|||||||
<<: *ubuntu
|
<<: *ubuntu
|
||||||
<<: *test_linux
|
<<: *test_linux
|
||||||
|
|
||||||
|
# cpp guideline checks
|
||||||
|
test_guidelines:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- docker run netgen_${CI_BUILD_REF_NAME}_${UBUNTU_VERSION}.id -e CCACHE_DIR=/ccache -v /mnt/ccache:/ccache netgen_${CI_BUILD_REF_NAME}:${UBUNTU_VERSION} bash /root/src/netgen/tests/build_guidelines.sh
|
||||||
############################################
|
############################################
|
||||||
# Deploy stage
|
# Deploy stage
|
||||||
############################################
|
############################################
|
||||||
|
@ -24,7 +24,7 @@ namespace ngcore
|
|||||||
void SetLibraryVersion(const std::string& library, const VersionInfo& version)
|
void SetLibraryVersion(const std::string& library, const VersionInfo& version)
|
||||||
{ library_versions[library] = version; }
|
{ library_versions[library] = version; }
|
||||||
|
|
||||||
#ifdef WIN
|
#ifdef WIN32
|
||||||
// windows does demangling in typeid(T).name()
|
// windows does demangling in typeid(T).name()
|
||||||
std::string Demangle(const char* typeinfo) { return typeinfo; }
|
std::string Demangle(const char* typeinfo) { return typeinfo; }
|
||||||
#else
|
#else
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
cd
|
cd
|
||||||
mkdir -p build/netgen
|
mkdir -p build/netgen
|
||||||
cd build/netgen
|
cd build/netgen
|
||||||
cmake ../../src/netgen -DUSE_CCACHE=ON -DENABLE_CPP_CORE_GUIDELINES_CHECK=ON
|
cmake ../../src/netgen -DUSE_CCACHE=ON
|
||||||
make -j12
|
make -j12
|
||||||
make install
|
make install
|
||||||
|
8
tests/build_guidelines.sh
Normal file
8
tests/build_guidelines.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
cd
|
||||||
|
mkdir -p build/netgen
|
||||||
|
cd build/netgen
|
||||||
|
cmake ../../src/netgen -DUSE_CCACHE=ON -DENABLE_CPP_CORE_GUIDELINES_CHECK=ON -DCMAKE_CXX_COMPILER=clang++ \
|
||||||
|
-DCMAKE_C_COMPILER=clang
|
||||||
|
make -j12
|
||||||
|
make install
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:18.04
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
MAINTAINER Matthias Hochsteger <matthias.hochsteger@tuwien.ac.at>
|
MAINTAINER Matthias Hochsteger <matthias.hochsteger@tuwien.ac.at>
|
||||||
RUN apt-get update && apt-get -y install python3 libpython3-dev libxmu-dev tk-dev tcl-dev cmake git g++ libglu1-mesa-dev ccache python3-pytest python3-numpy python3-tk clang-tidy python3-distutils
|
RUN apt-get update && apt-get -y install python3 libpython3-dev libxmu-dev tk-dev tcl-dev cmake git g++ libglu1-mesa-dev ccache python3-pytest python3-numpy python3-tk clang-tidy python3-distutils clang
|
||||||
ADD . /root/src/netgen
|
ADD . /root/src/netgen
|
||||||
|
Loading…
Reference in New Issue
Block a user