Commit 00c674a8 authored by Vuillaume's avatar Vuillaume
Browse files

Merge branch 'hotfix' into 'master'

Fix check connection zenodo

See merge request !200
parents bb483b6d 4d97f00b
Pipeline #173236 passed with stages
in 8 minutes and 28 seconds
...@@ -56,15 +56,16 @@ test_ci_eossr: ...@@ -56,15 +56,16 @@ test_ci_eossr:
stage: test stage: test
trigger: escape2020/wp3/test_eossr trigger: escape2020/wp3/test_eossr
test_codemeta_ingestion:
stage: test #test_codemeta_ingestion:
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.6 # stage: test
script: # image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:dev
- eossr-check-connection-zenodo --token $ZENODO_TOKEN -p $CI_PROJECT_DIR # script:
rules: # - eossr-check-connection-zenodo --token $ZENODO_TOKEN -p $CI_PROJECT_DIR
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH' # rules:
- changes: # - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
- codemeta.json # - changes:
# - codemeta.json
build_docker: build_docker:
......
#!/usr/bin/env python #!/usr/bin/env python
import argparse import argparse
from distutils.util import strtobool
from eossr.api.zenodo import ZenodoAPI from eossr.api.zenodo import ZenodoAPI
...@@ -42,7 +41,7 @@ def main(): ...@@ -42,7 +41,7 @@ def main():
args = build_argparser().parse_args() args = build_argparser().parse_args()
zenodo = ZenodoAPI(access_token=args.zenodo_token, sandbox=args.sandbox_flag) zenodo = ZenodoAPI(access_token=args.zenodo_token, sandbox=args.sandbox)
zenodo.check_upload_to_zenodo(args.project_dir) zenodo.check_upload_to_zenodo(args.project_dir)
......
Markdown is supported
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