Skip to content
Snippets Groups Projects
Commit 327362fd authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Add back Python test on Windows.

parent 6831c52a
No related branches found
No related tags found
2 merge requests!50version 0.2.0,!36Win ci
Pipeline #38304 passed
...@@ -136,6 +136,8 @@ build:ubuntu_python: ...@@ -136,6 +136,8 @@ build:ubuntu_python:
- source venv/bin/activate - source venv/bin/activate
- python3 -m pip install -r requirements.txt - python3 -m pip install -r requirements.txt
- python3 -m pip install . - python3 -m pip install .
- python3 -m pip install numpy unittest-xml-reporting
- python3 -m pip list
artifacts: artifacts:
expire_in: 1 week expire_in: 1 week
paths: paths:
......
...@@ -18,32 +18,31 @@ test:ubuntu_python: ...@@ -18,32 +18,31 @@ test:ubuntu_python:
script: script:
- source venv/bin/activate - source venv/bin/activate
- cd ${CI_PROJECT_NAME} - cd ${CI_PROJECT_NAME}
- 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
# 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 # 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 xmlrunner discover -s unit_tests/ -v -b --output-file xmlrunner-results.xml
artifacts: artifacts:
reports: reports:
junit: ${CI_PROJECT_NAME}/xmlrunner-results.xml junit: ${CI_PROJECT_NAME}/xmlrunner-results.xml
# test:windows_cpp: test:windows_cpp:
# stage: test stage: test
# needs: ["build:windows_cpp"] needs: ["build:windows_cpp"]
# tags: tags:
# - windows - windows
# image: buildtools image: buildtools
# before_script: before_script:
# # Install Chocolatey # Install Chocolatey
# - Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) - Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# # Install dependencies # Install dependencies
# - choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y - choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
# - choco install python -Y - choco install python -Y
# # Update PATH # Update PATH
# - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
# script: script:
# - cd build_cpp - cd build_cpp
# - ctest --output-junit ctest-results.xml --output-on-failure - ctest --output-junit ctest-results.xml --output-on-failure
# artifacts: artifacts:
# reports: reports:
# junit: build_cpp/ctest-results.xml junit: build_cpp/ctest-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