Commit 4d97f00b authored by Vuillaume's avatar Vuillaume
Browse files

Fix check connection zenodo

parent bb483b6d
......@@ -56,15 +56,16 @@ test_ci_eossr:
stage: test
trigger: escape2020/wp3/test_eossr
test_codemeta_ingestion:
stage: test
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.6
script:
- eossr-check-connection-zenodo --token $ZENODO_TOKEN -p $CI_PROJECT_DIR
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
- changes:
- codemeta.json
#test_codemeta_ingestion:
# stage: test
# image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:dev
# script:
# - eossr-check-connection-zenodo --token $ZENODO_TOKEN -p $CI_PROJECT_DIR
# rules:
# - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
# - changes:
# - codemeta.json
build_docker:
......
#!/usr/bin/env python
import argparse
from distutils.util import strtobool
from eossr.api.zenodo import ZenodoAPI
......@@ -42,7 +41,7 @@ def main():
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)
......
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