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

Test conditional test for uncertainties

parent 6f1dc3b5
......@@ -172,20 +172,27 @@ article:
image:
name: pycif/pycif-ubuntu:0.1
entrypoint: [""]
before_script:
# - apt-get update
- pip freeze
# before_script:
## - apt-get update
# - pip freeze
script:
- tox -e py38 -e coverage -- -m "(dummy and article and inversion and not adjtltest and not uncertainties) or (fwd and ref_config)"
after_script:
- 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\.]+\%)$/'
- echo AAAAAAAAAAAAAAAAAAAAAAAAaaa
- echo ${CI_COMMIT_BRANCH}
- echo AAAAAAAAAAAAAAAAAAAAAAAAaaa
- echo ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}
- echo AAAAAAAAAAAAAAAAAAAAAAAAaaa
- if [ ${CI_COMMIT_BRANCH} -eq new_classes ]; then echo "TTTTTTTTTTTTTTTTTTTTTTTTT"; fi;
#- tox -e py38 -e coverage -- -m "(dummy and article and inversion and not adjtltest and not uncertainties) or (fwd and ref_config)"
# after_script:
# - 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:
when: always
paths:
......@@ -195,8 +202,8 @@ article:
- coverage_raw
- examples_artifact
- figures_artifact
only:
- LSCE
# only:
# - LSCE
article_uncertainties:
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