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: build:ubuntu_cpp:
stage: build stage: build
needs: []
tags: tags:
- docker - docker
...@@ -17,6 +18,7 @@ build:ubuntu_cpp: ...@@ -17,6 +18,7 @@ build:ubuntu_cpp:
build:ubuntu_python: build:ubuntu_python:
stage: build stage: build
needs: []
tags: tags:
- docker - docker
...@@ -28,4 +30,23 @@ build:ubuntu_python: ...@@ -28,4 +30,23 @@ build:ubuntu_python:
- python3 -m pip install . - python3 -m pip install .
artifacts: artifacts:
paths: paths:
- venv/ - venv/
\ No newline at end of file
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: ...@@ -33,4 +33,4 @@ coverage:ubuntu_python:
reports: reports:
coverage_report: coverage_report:
coverage_format: cobertura coverage_format: cobertura
path: coverage.xml path: aidge_core/coverage.xml
...@@ -5,7 +5,10 @@ test:ubuntu_cpp: ...@@ -5,7 +5,10 @@ test:ubuntu_cpp:
- docker - docker
script: script:
- cd build_cpp - 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: test:ubuntu_python:
stage: test stage: test
...@@ -15,7 +18,10 @@ test:ubuntu_python: ...@@ -15,7 +18,10 @@ test:ubuntu_python:
script: script:
- source venv/bin/activate - source venv/bin/activate
- cd aidge_core - cd aidge_core
- python3 -m pip install unittest-xml-reporting
- python3 -m pip list - python3 -m pip list
# Run on discovery all tests located in core/unit_tests/python and discard the stdout # Run on discovery all tests located in core/unit_tests/python
# only to show the errors/warnings and the results of the tests - python3 -m xmlrunner discover -s unit_tests/ -v -b --output-file xmlrunner-results.xml
- python3 -m unittest discover -s unit_tests/ -v -b 1> /dev/null 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