Skip to content
Snippets Groups Projects
Commit 739328d6 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Fixed project name

parent 75db7a40
No related branches found
No related tags found
1 merge request!3Added coverage
Pipeline #31155 passed
...@@ -27,7 +27,7 @@ coverage:ubuntu_python: ...@@ -27,7 +27,7 @@ coverage:ubuntu_python:
script: script:
- source venv/bin/activate - source venv/bin/activate
- python3 -m pip install numpy coverage - python3 -m pip install numpy coverage
- cd $PROJECT_NAME - cd ${CI_PROJECT_NAME}
- python3 -m coverage run --source=. -m unittest discover -s unit_tests/ -v -b - python3 -m coverage run --source=. -m unittest discover -s unit_tests/ -v -b
- python3 -m coverage report - python3 -m coverage report
- python3 -m coverage xml - python3 -m coverage xml
...@@ -36,4 +36,4 @@ coverage:ubuntu_python: ...@@ -36,4 +36,4 @@ coverage:ubuntu_python:
reports: reports:
coverage_report: coverage_report:
coverage_format: cobertura coverage_format: cobertura
path: $PROJECT_NAME/coverage.xml path: ${CI_PROJECT_NAME}/coverage.xml
...@@ -26,8 +26,8 @@ static_analysis:python: ...@@ -26,8 +26,8 @@ static_analysis:python:
script: script:
- pip install pylint - pip install pylint
- pip install pylint-gitlab - pip install pylint-gitlab
- pylint --rcfile=.pylintrc --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter $PROJECT_NAME/ > codeclimate.json - pylint --rcfile=.pylintrc --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter ${CI_PROJECT_NAME}/ > codeclimate.json
- pylint --rcfile=.pylintrc --exit-zero --output-format=pylint_gitlab.GitlabPagesHtmlReporter $PROJECT_NAME/ > pylint.html - pylint --rcfile=.pylintrc --exit-zero --output-format=pylint_gitlab.GitlabPagesHtmlReporter ${CI_PROJECT_NAME}/ > pylint.html
- mkdir -p public/python/$CI_COMMIT_REF_NAME - mkdir -p public/python/$CI_COMMIT_REF_NAME
- mv pylint.html public/python/$CI_COMMIT_REF_NAME/ - mv pylint.html public/python/$CI_COMMIT_REF_NAME/
artifacts: artifacts:
......
...@@ -17,7 +17,7 @@ test:ubuntu_python: ...@@ -17,7 +17,7 @@ test:ubuntu_python:
- docker - docker
script: script:
- source venv/bin/activate - source venv/bin/activate
- cd $PROJECT_NAME - cd ${CI_PROJECT_NAME}
- python3 -m pip install numpy unittest-xml-reporting - python3 -m pip install numpy 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 and discard the stdout
...@@ -25,7 +25,7 @@ test:ubuntu_python: ...@@ -25,7 +25,7 @@ test:ubuntu_python:
- 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: $PROJECT_NAME/xmlrunner-results.xml junit: ${CI_PROJECT_NAME}/xmlrunner-results.xml
test:windows_cpp: test:windows_cpp:
stage: test stage: test
......
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