Commit ec06233a authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Test conditional test for uncertainties

parent 6f1dc3b5
...@@ -172,20 +172,27 @@ article: ...@@ -172,20 +172,27 @@ article:
image: image:
name: pycif/pycif-ubuntu:0.1 name: pycif/pycif-ubuntu:0.1
entrypoint: [""] entrypoint: [""]
before_script: # before_script:
# - apt-get update ## - apt-get update
- pip freeze # - pip freeze
script: script:
- tox -e py38 -e coverage -- -m "(dummy and article and inversion and not adjtltest and not uncertainties) or (fwd and ref_config)" - echo AAAAAAAAAAAAAAAAAAAAAAAAaaa
after_script: - echo ${CI_COMMIT_BRANCH}
- mkdir -p coverage - echo AAAAAAAAAAAAAAAAAAAAAAAAaaa
- xmlstarlet sel -t -v "//coverage/@line-rate" reports/coverage.xml > coverage/.current_coverage - echo ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}
- calc() { awk "BEGIN{print $*}"; } - echo AAAAAAAAAAAAAAAAAAAAAAAAaaa
- percent_coverage=`cat coverage/.current_coverage` - if [ ${CI_COMMIT_BRANCH} -eq new_classes ]; then echo "TTTTTTTTTTTTTTTTTTTTTTTTT"; fi;
- tot_coverage=`calc ${percent_coverage}*100`
- echo 'TOTAL COVERAGE:'" ${tot_coverage}%" #- tox -e py38 -e coverage -- -m "(dummy and article and inversion and not adjtltest and not uncertainties) or (fwd and ref_config)"
- mv coverage_raw/coverage/.coverage coverage_raw/.coverage.article # after_script:
coverage: '/^TOTAL COVERAGE: ([0-9\.]+\%)$/' # - mkdir -p coverage
# - xmlstarlet sel -t -v "//coverage/@line-rate" reports/coverage.xml > coverage/.current_coverage
# - calc() { awk "BEGIN{print $*}"; }
# - percent_coverage=`cat coverage/.current_coverage`
# - tot_coverage=`calc ${percent_coverage}*100`
# - echo 'TOTAL COVERAGE:'" ${tot_coverage}%"
# - mv coverage_raw/coverage/.coverage coverage_raw/.coverage.article
# coverage: '/^TOTAL COVERAGE: ([0-9\.]+\%)$/'
artifacts: artifacts:
when: always when: always
paths: paths:
...@@ -195,8 +202,8 @@ article: ...@@ -195,8 +202,8 @@ article:
- coverage_raw - coverage_raw
- examples_artifact - examples_artifact
- figures_artifact - figures_artifact
only: # only:
- LSCE # - LSCE
article_uncertainties: article_uncertainties:
stage: test stage: test
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment