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
Iterations
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
Eclipse Projects
aidge
aidge_backend_cpu
Commits
327362fd
Commit
327362fd
authored
1 year ago
by
Cyril Moineau
Browse files
Options
Downloads
Patches
Plain Diff
Add back Python test on Windows.
parent
6831c52a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!50
version 0.2.0
,
!36
Win ci
Pipeline
#38304
passed
1 year ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab/ci/build.gitlab-ci.yml
+2
-0
2 additions, 0 deletions
.gitlab/ci/build.gitlab-ci.yml
.gitlab/ci/test.gitlab-ci.yml
+22
-23
22 additions, 23 deletions
.gitlab/ci/test.gitlab-ci.yml
with
24 additions
and
23 deletions
.gitlab/ci/build.gitlab-ci.yml
+
2
−
0
View file @
327362fd
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
.gitlab/ci/test.gitlab-ci.yml
+
22
−
23
View file @
327362fd
...
@@ -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
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