Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_backend_cpu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charles Villard
aidge_backend_cpu
Commits
23c667ce
Commit
23c667ce
authored
1 year ago
by
Olivier BICHLER
Browse files
Options
Downloads
Patches
Plain Diff
Adapted CI for OVH
parent
54e1a95b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab/ci/_global.gitlab-ci.yml
+5
-2
5 additions, 2 deletions
.gitlab/ci/_global.gitlab-ci.yml
.gitlab/ci/build.gitlab-ci.yml
+11
-33
11 additions, 33 deletions
.gitlab/ci/build.gitlab-ci.yml
.gitlab/ci/test.gitlab-ci.yml
+9
-5
9 additions, 5 deletions
.gitlab/ci/test.gitlab-ci.yml
with
25 additions
and
40 deletions
.gitlab/ci/_global.gitlab-ci.yml
+
5
−
2
View file @
23c667ce
...
...
@@ -9,5 +9,8 @@ variables:
GIT_SSL_NO_VERIFY
:
1
DEBIAN_FRONTEND
:
noninteractive
image
:
n2d2-ci/ubuntu20.04/cpu:latest
\ No newline at end of file
default
:
image
:
nvidia/cuda:12.2.0-devel-ubuntu22.04
before_script
:
-
apt update
-
apt install -y cmake cppcheck python-is-python3 pip git gcovr
This diff is collapsed.
Click to expand it.
.gitlab/ci/build.gitlab-ci.yml
+
11
−
33
View file @
23c667ce
...
...
@@ -2,24 +2,13 @@ build:ubuntu_cpp:
stage
:
build
tags
:
-
docker
image
:
n2d2-ci/ubuntu20.04/cpu:latest
script
:
-
INSTALL_PATH="$CI_PROJECT_DIR/install_cpp"
-
mkdir -p $INSTALL_PATH
-
mkdir -p build_cpp
# Download dependencies
# aidge_core
-
'
curl
--location
--output
build_artifacts.zip
"https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:ubuntu_cpp"'
-
unzip -o build_artifacts.zip -d .
-
rm -rf build_cpp
# Clone and compile dependencies
-
MODULE_NAME="aidge_core"
-
BASE_URL=`echo $CI_REPOSITORY_URL | sed "s;\/*$CI_PROJECT_PATH.*;;"`
-
REPO_URL="$BASE_URL/aidge/$MODULE_NAME.git"
-
git clone $REPO_URL $MODULE_NAME
-
mkdir -p $MODULE_NAME/build
-
cd $MODULE_NAME/build
-
cmake -DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_PATH -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON ..
-
make -j4 all install
-
cd ../..
# Build current module
-
cd build_cpp
-
cmake -DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_PATH -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON ..
...
...
@@ -34,28 +23,17 @@ build:ubuntu_python:
stage
:
build
tags
:
-
docker
image
:
n2d2-ci/ubuntu20.04/cpu:latest
script
:
-
export AIDGE_INSTALL=`pwd`/install
# Download dependencies
# aidge_core
-
'
curl
--location
--output
build_artifacts.zip
"https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:ubuntu_python"'
-
unzip -o build_artifacts.zip -d .
# Create virtaul env
-
python3 -m pip install virtualenv
-
virtualenv venv
-
source venv/bin/activate
# Clone dependencies
-
MODULE_NAME="aidge_core"
-
BASE_URL=`echo $CI_REPOSITORY_URL | sed "s;\/*$CI_PROJECT_PATH.*;;"`
-
REPO_URL="$BASE_URL/aidge/$MODULE_NAME.git"
-
git clone $REPO_URL $MODULE_NAME
# Pip install dependancy
-
cd $MODULE_NAME
-
python3 -m pip install . -v
-
cd ..
-
python3 -m pip install . -v
-
export AIDGE_INSTALL=`pwd`/install
-
python3 -m pip install .
artifacts
:
paths
:
-
venv/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab/ci/test.gitlab-ci.yml
+
9
−
5
View file @
23c667ce
...
...
@@ -3,22 +3,26 @@ test:ubuntu_cpp:
needs
:
[
"
build:ubuntu_cpp"
]
tags
:
-
docker
image
:
n2d2-ci/ubuntu20.04/cpu:latest
script
:
-
cd build_cpp
-
ctest --output-on-failure
-
ctest --output-junit ctest-results.xml --output-on-failure
artifacts
:
reports
:
junit
:
build_cpp/ctest-results.xml
test:ubuntu_python
:
stage
:
test
needs
:
[
"
build:ubuntu_python"
]
tags
:
-
docker
image
:
n2d2-ci/ubuntu20.04/cpu:latest
script
:
-
source venv/bin/activate
-
cd aidge_backend_cpu
-
python3 -m pip install numpy
-
python3 -m pip install numpy
unittest-xml-reporting
-
python3 -m pip list
# Run on discovery all tests located in core/unit_tests/python and discard the stdout
# only to show the errors/warnings and the results of the tests
-
python3 -m unittest discover -s unit_tests/ -v -b 1> /dev/null
-
python3 -m xmlrunner discover -s unit_tests/ -v -b --output-file xmlrunner-results.xml
artifacts
:
reports
:
junit
:
aidge_core/xmlrunner-results.xml
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