Skip to content
Snippets Groups Projects
Commit 020024a7 authored by Thibault Allenet's avatar Thibault Allenet
Browse files

Merge branch 'main' into dataloader

parents c9540441 c436ffb0
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!4Dataloader
build:ubuntu_cpp:
stage: build
needs: []
tags:
- docker
......@@ -17,6 +18,7 @@ build:ubuntu_cpp:
build:ubuntu_python:
stage: build
needs: []
tags:
- docker
......@@ -28,4 +30,23 @@ build:ubuntu_python:
- python3 -m pip install .
artifacts:
paths:
- venv/
\ No newline at end of file
- venv/
build:windows_cpp:
stage: build
needs: []
tags:
- windows
image: mcr.microsoft.com/windows/servercore:ltsc2022
before_script:
- Invoke-WebRequest -UseBasicParsing "https://github.com/Kitware/CMake/releases/download/v3.27.4/cmake-3.27.4-windows-x86_64.msi" -o cmake-3.27.4-windows-x86_64.msi
- Start-Process -Wait -FilePath MsiExec.exe -ArgumentList '/i cmake-3.27.4-windows-x86_64.msi ADD_CMAKE_TO_PATH=System /qn'
- Invoke-WebRequest -UseBasicParsing "https://aka.ms/vs/17/release/vs_buildtools.exe" -o vs_buildtools.exe
- Start-Process -Wait -FilePath .\vs_buildtools.exe -ArgumentList '-q'
script:
- mkdir -p build_cpp
- mkdir -p install_cpp
- cd build_cpp
- cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug ..
- make -j2 all install
......@@ -33,4 +33,4 @@ coverage:ubuntu_python:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
path: aidge_core/coverage.xml
......@@ -5,7 +5,10 @@ test:ubuntu_cpp:
- docker
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
......@@ -15,7 +18,10 @@ test:ubuntu_python:
script:
- source venv/bin/activate
- cd aidge_core
- python3 -m pip install 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
# Run on discovery all tests located in core/unit_tests/python
- python3 -m xmlrunner discover -s unit_tests/ -v -b --output-file xmlrunner-results.xml
artifacts:
reports:
junit: aidge_core/xmlrunner-results.xml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment