Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VERIFY
CIF
Commits
ec06233a
Commit
ec06233a
authored
Dec 23, 2021
by
Antoine Berchet
Browse files
Test conditional test for uncertainties
parent
6f1dc3b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ec06233a
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment