Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
055b51e7
Commit
055b51e7
authored
7 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of gitlab.delpinux.fr:code/pastis into develop
parents
33271298
8c333332
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+45
-0
45 additions, 0 deletions
.gitlab-ci.yml
README.md
+11
-0
11 additions, 0 deletions
README.md
tests/CMakeLists.txt
+8
-5
8 additions, 5 deletions
tests/CMakeLists.txt
tests/test_RevisionInfo.cpp
+8
-1
8 additions, 1 deletion
tests/test_RevisionInfo.cpp
with
72 additions
and
6 deletions
.gitlab-ci.yml
0 → 100644
+
45
−
0
View file @
055b51e7
image
:
localhost:5000/ubuntu_gcc
#before_script:
# - apt-get update
# - apt-get -y install cmake g++-7 gcovr bc
# - apt-get -y upgrade
cache
:
key
:
"
$CI_COMMIT_REF_SLUG"
paths
:
-
build/
untracked
:
true
stages
:
-
build
-
test
-
deploy
build
:
stage
:
build
script
:
-
mkdir -p build
-
cd build
-
CXX=g++-7 CC=gcc-7 cmake .. -DCMAKE_BUILD_TYPE=Coverage
-
make pastis
tests
:
stage
:
test
script
:
-
ls > /dev/null
# seems necessary to ensure build is here...
-
cd build
-
make unit_tests
-
make coverage-report
pages
:
stage
:
deploy
dependencies
:
-
tests
script
:
-
ls > /dev/null
# seems necessary to ensure build is here...
-
rm -rf public/
-
mv build/coverage/ public/
artifacts
:
paths
:
-
public
expire_in
:
30 days
This diff is collapsed.
Click to expand it.
README.md
+
11
−
0
View file @
055b51e7
Pipelines
=========
> [](https://gitlab.delpinux.fr/code/pastis/pipelines)
[

](https://gitlab.delpinux.fr/code/pastis/commits/develop)
[
`develop`
](
https://gitlab.delpinux.fr/code/pastis/tree/develop
)
> [](https://gitlab.delpinux.fr/code/pastis/pipelines)
[

](https://gitlab.delpinux.fr/code/pastis/commits/master)
[
`master`
](
https://gitlab.delpinux.fr/code/pastis/tree/master
)
Appetizer
=========
...
...
This diff is collapsed.
Click to expand it.
tests/CMakeLists.txt
+
8
−
5
View file @
055b51e7
include_directories
(
"
${
CATCH_INCLUDE_PATH
}
"
)
include_directories
(
"
${
PASTIS_BINARY_DIR
}
/src/utils"
)
set
(
EXECUTABLE_OUTPUT_PATH
${
PASTIS_BINARY_DIR
}
)
add_executable
(
unit_tests
test_main.cpp
test_PastisAssert.cpp
test_RevisionInfo.cpp
test_TinyMatrix.cpp
test_TinyVector.cpp
)
test_TinyVector.cpp
)
target_include_directories
(
Catch INTERFACE
${
CATCH_INCLUDE_DIR
}
)
target_link_libraries
(
unit_tests
target_link_libraries
(
unit_tests
PastisUtils
Catch
)
Catch
)
enable_testing
()
...
...
This diff is collapsed.
Click to expand it.
tests/test_RevisionInfo.cpp
+
8
−
1
View file @
055b51e7
...
...
@@ -2,6 +2,13 @@
#include
<RevisionInfo.hpp>
#include
<pastis_git_revision.hpp>
TEST_CASE
(
"RevisionInfo"
,
"[utils]"
)
{
REQUIRE
(
RevisionInfo
::
hasGitInfo
()
==
true
);
#ifdef HAS_PASTIS_GIT_INFO
#define HAS_GIT_INFO true
#else
#define HAS_GIT_INFO false
#endif
REQUIRE
(
(
RevisionInfo
::
hasGitInfo
()
==
HAS_GIT_INFO
)
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment