Initial commit

opengl
Yorick GEOFFRE 3 years ago
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: {}

62
.gitignore vendored

@ -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

Binary file not shown.

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 &nbsp;
<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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

@ -0,0 +1,22 @@
[![Build Status](https://codefirst.ddns.net/api/badges/yorick.geoffre/project-/status.svg)](https://codefirst.ddns.net/yorick.geoffre/project-)
[![Quality Gate Status](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=yorick.geoffre%3Aproject-&metric=alert_status)](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
[![Bugs](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=yorick.geoffre%3Aproject-&metric=bugs)](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
[![Code Smells](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=yorick.geoffre%3Aproject-&metric=code_smells)](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
[![Coverage](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=yorick.geoffre%3Aproject-&metric=coverage)](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
[![Duplicated Lines (%)](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=yorick.geoffre%3Aproject-&metric=duplicated_lines_density)](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
[![Lines of Code](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=yorick.geoffre%3Aproject-&metric=ncloc)](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
[![Maintainability Rating](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=yorick.geoffre%3Aproject-&metric=sqale_rating)](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
[![Reliability Rating](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=yorick.geoffre%3Aproject-&metric=reliability_rating)](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
[![Security Rating](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=yorick.geoffre%3Aproject-&metric=security_rating)](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
[![Technical Debt](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=yorick.geoffre%3Aproject-&metric=sqale_index)](https://codefirst.ddns.net/sonar/dashboard?id=yorick.geoffre%3Aproject-)
[![Vulnerabilities](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=yorick.geoffre%3Aproject-&metric=vulnerabilities)](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…
Cancel
Save