commit
a45f487aa8
@ -0,0 +1,52 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: pubhub.codefirst.ddns.net/thbellem/codefirst-drone-cppcheck:latest
|
||||
volumes:
|
||||
- name: work
|
||||
path: /work
|
||||
commands:
|
||||
- find . -iname "*.cpp" | xargs cppcheck -v --enable=all --xml-version=2 --xml 2> /work/cppcheck.xml
|
||||
- cd Sources/_Linux/
|
||||
- make -f makefile.lnx release
|
||||
|
||||
- name: code analysis
|
||||
image: aosapps/drone-sonar-plugin
|
||||
volumes:
|
||||
- name: work
|
||||
path: /work
|
||||
settings:
|
||||
sonar_host: https://codefirst.ddns.net/sonar/
|
||||
sonar_token: 96864ed9ef8d6343007881fc9ef30eb70eaf846d
|
||||
java_binaries: target/classes
|
||||
level: DEBUG
|
||||
sources: .
|
||||
depends_on: [ build ]
|
||||
|
||||
- name: generate-and-deploy-docs
|
||||
image: pubhub.codefirst.ddns.net/thbellem/codefirst-docdeployer
|
||||
volumes:
|
||||
- name: docs
|
||||
path: /docs
|
||||
commands:
|
||||
- cd Documentation/doxygen
|
||||
- doxygen Doxyfile
|
||||
- /entrypoint.sh
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
depends_on: [ build ]
|
||||
|
||||
# image_pull_secrets:
|
||||
# - DOCKERCONFIG
|
||||
|
||||
volumes:
|
||||
- name: work
|
||||
temp: {}
|
@ -0,0 +1,62 @@
|
||||
# ---> C++
|
||||
# Prerequisites
|
||||
*.d
|
||||
|
||||
# Compiled Object files
|
||||
*.slo
|
||||
*.lo
|
||||
*.o
|
||||
*.obj
|
||||
|
||||
# Precompiled Headers
|
||||
*.gch
|
||||
*.pch
|
||||
|
||||
# Compiled Dynamic libraries
|
||||
*.so
|
||||
*.dylib
|
||||
*.dll
|
||||
|
||||
# Fortran module files
|
||||
*.mod
|
||||
*.smod
|
||||
|
||||
# Compiled Static libraries
|
||||
*.lai
|
||||
*.la
|
||||
*.a
|
||||
*.lib
|
||||
|
||||
# Executables
|
||||
*.exe
|
||||
*.out
|
||||
*.app
|
||||
|
||||
# ---> macOS
|
||||
# General
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Icon must end with two \r
|
||||
Icon
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear in the root of a volume
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
.com.apple.timemachine.donotpresent
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
After Width: | Height: | Size: 4.6 KiB |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,8 @@
|
||||
<html><body>
|
||||
<p>
|
||||
<hr size="1"/><address style="text-align: right;"><small>Generated on $datetime at
|
||||
<a href="https://www.linkedin.com/company/code-1st">
|
||||
<img src="CodeFirst.png" alt="Code#0" align="middle" border="0"/></a> by Doxygen version $doxygenversion</small></address>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
After Width: | Height: | Size: 4.6 KiB |
@ -0,0 +1,22 @@
|
||||
[](https://codefirst.ddns.net/yorick.geoffre/project-)
|
||||
[](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
|
||||
[](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
|
||||
[](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
|
||||
[](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
|
||||
[](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
|
||||
[](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
|
||||
[](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
|
||||
[](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
|
||||
[](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
|
||||
[](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
|
||||
[](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
|
||||
|
||||
|
||||
# project-
|
||||
|
||||
Welcome on the project- project!
|
||||
|
||||
|
||||
|
||||
_Generated with a_ **Code#0** _template_
|
||||
<img src="Documentation/doc_images/CodeFirst.png" height=40/>
|
@ -0,0 +1,12 @@
|
||||
#include "helloLibrary/Class1.h"
|
||||
#include <iostream>
|
||||
|
||||
using namespace helloLibrary;
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
Class1 c("Hello World!");
|
||||
cout<<c.GetText()<<endl;
|
||||
return 0;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
build :
|
||||
@mkdir -p $(CONFIG)
|
||||
make -f makeprj.lnx CONFIG=$(CONFIG)
|
||||
|
||||
clean :
|
||||
make clean -f makeprj.lnx CONFIG=debug
|
||||
make clean -f makeprj.lnx CONFIG=release
|
@ -0,0 +1,34 @@
|
||||
CC = /usr/bin/g++
|
||||
CFLAGS = -c -Wall -ansi
|
||||
EXE = helloLibrary_Tests
|
||||
SUFFIX = d
|
||||
|
||||
ifeq (debug,$(CONFIG))
|
||||
CFLAGS += -O2 -DNDEBUG
|
||||
SUFFIX = d
|
||||
else
|
||||
CFLAGS += -g -D_DEBUG
|
||||
SUFFIX =
|
||||
endif
|
||||
|
||||
INCPATH = -I../../../../include
|
||||
SRCDIR = ../../../../Applications/Tests/helloLibrary
|
||||
BINDIR = ../../../../bin
|
||||
INC := $(wildcard *.h) $(wildcard *.inl)
|
||||
INC := $(notdir $(INC))
|
||||
SRC := $(wildcard $(SRCDIR)/*.cpp)
|
||||
SRC := $(notdir $(SRC))
|
||||
OBJDIR := $(CONFIG)
|
||||
OBJ := $(SRC:%.cpp=$(OBJDIR)/%.o)
|
||||
|
||||
all : $(EXE)
|
||||
|
||||
$(OBJDIR)/%.o : $(SRCDIR)/%.cpp
|
||||
$(CC) -o $@ $(INCPATH) $(CFLAGS) $<
|
||||
|
||||
clean :
|
||||
rm -f $(OBJDIR)/*.o
|
||||
|
||||
$(EXE) : $(OBJ)
|
||||
$(CC) $(OBJ) -L$(BINDIR) -lhelloLibrary$(SUFFIX) -o $(BINDIR)/$(EXE)$(SUFFIX)
|
||||
|
@ -0,0 +1,5 @@
|
||||
build:
|
||||
cd ../../Documentation/Doxygen && doxygen Doxyfile
|
||||
|
||||
clean:
|
||||
rmdir /S /Q html
|
@ -0,0 +1,7 @@
|
||||
build:
|
||||
@mkdir -p $(CONFIG)
|
||||
make -f makeprj.lnx CONFIG=$(CONFIG)
|
||||
|
||||
clean:
|
||||
make clean -f makeprj.lnx CONFIG=debug
|
||||
make clean -f makeprj.lnx CONFIG=release
|
@ -0,0 +1,34 @@
|
||||
CC = /usr/bin/g++
|
||||
CFLAGS = -c -Wall -ansi
|
||||
DLL = libhelloLibrary
|
||||
SUFFIX = d
|
||||
|
||||
ifeq (debug,$(CONFIG))
|
||||
CFLAGS += -O2 -DNDEBUG
|
||||
SUFFIX = d
|
||||
else
|
||||
CFLAGS += -g -D_DEBUG
|
||||
SUFFIX =
|
||||
endif
|
||||
|
||||
INCPATH = -I../../include
|
||||
SRCDIR = ../../src/helloLibrary
|
||||
BINDIR = ../../bin
|
||||
INC := $(wildcard *.h) $(wildcard *.inl)
|
||||
INC := $(notdir $(INC))
|
||||
SRC := $(wildcard $(SRCDIR)/*.cpp)
|
||||
SRC := $(notdir $(SRC))
|
||||
OBJDIR := $(CONFIG)
|
||||
OBJ := $(SRC:%.cpp=$(OBJDIR)/%.o)
|
||||
|
||||
all : $(DLL)
|
||||
|
||||
$(OBJDIR)/%.o : $(SRCDIR)/%.cpp
|
||||
$(CC) -o $@ $(INCPATH) $(CFLAGS) $<
|
||||
|
||||
clean :
|
||||
rm -f $(OBJDIR)/*.o
|
||||
|
||||
$(DLL) : $(OBJ)
|
||||
$(CC) -fdiagnostics-show-option -o $(BINDIR)/$(DLL)$(SUFFIX).so -shared $(OBJDIR)/*.o 2> $(BINDIR)/build.log
|
||||
# ld -o $(BINDIR)/$(DLL)$(SUFFIX).so -shared $(OBJDIR)/*.o
|
@ -0,0 +1,12 @@
|
||||
debug :
|
||||
cd helloLibrary && make -f makefile.lnx CONFIG=debug
|
||||
cd Applications/Tests/helloLibrary && make -f makefile.lnx CONFIG=debug
|
||||
|
||||
release :
|
||||
cd helloLibrary && make -f makefile.lnx CONFIG=release
|
||||
cd Applications/Tests/helloLibrary && make -f makefile.lnx CONFIG=release
|
||||
# cd Documentation && make -f makefile
|
||||
|
||||
clean :
|
||||
cd helloLibraryh && make clean -f makefile.lnx
|
||||
cd Applications/Tests/helloLibrary && make clean -f makefile.lnx
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,31 @@
|
||||
#ifndef HL_CLASS1_POINTER_H
|
||||
#define HL_CLASS1_POINTER_H
|
||||
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
///a simple namespace
|
||||
/** a full description
|
||||
*/
|
||||
namespace helloLibrary
|
||||
{
|
||||
///a simple class
|
||||
class Class1
|
||||
{
|
||||
public:
|
||||
///initializes the Class1 instance
|
||||
/** @param text a simple text
|
||||
*/
|
||||
Class1(string text);
|
||||
|
||||
string GetText();
|
||||
|
||||
private:
|
||||
///a simple text
|
||||
string _text;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif //HL_CLASS1_POINTER_H
|
@ -0,0 +1,13 @@
|
||||
#include "helloLibrary/Class1.h"
|
||||
|
||||
using namespace helloLibrary;
|
||||
|
||||
Class1::Class1(string text)
|
||||
{
|
||||
_text = text;
|
||||
}
|
||||
|
||||
string Class1::GetText()
|
||||
{
|
||||
return _text;
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
sonar.projectKey=testCpp
|
||||
#sonar.language=cpp
|
||||
|
||||
sonar.sources=.
|
||||
sonar.sourceEncoding=UTF-8
|
||||
|
||||
sonar.cxx.file.suffixes=.cpp,.h
|
||||
sonar.cxx.includeDirectories=./
|
||||
|
||||
sonar.cxx.cppcheck.reportPaths=/work/**/*cppcheck.xml
|
||||
sonar.cxx.gcc.reportPaths=/work/**/*build.log
|
||||
sonar.cxx.gcc.encoding=UTF-8
|
||||
sonar.cxx.gcc.regex=(?<file>.*):(?<line>[0-9]+):[0-9]+:\\x20warning:\\x20(?<message>.*)\\x20\\[(?<id>.*)\\]
|
Loading…
Reference in new issue