Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Gitlab is now running v13.10.2 - More info ->
here
<-
Open sidebar
ESCAPE2020
WP3
ZenodoCI
Commits
7400d019
Commit
7400d019
authored
Jan 08, 2021
by
Enrique Garcia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
couple more typos
parent
4de3b5ef
Pipeline
#98705
passed with stages
in 2 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
zenodoci/test_connection_zenodo.py
zenodoci/test_connection_zenodo.py
+1
-1
No files found.
.gitlab-ci.yml
View file @
7400d019
...
...
@@ -31,7 +31,7 @@ deploy_zenodo:
-
pip install .
# Install ZenodoCI
### 2 - Test the communication to Zenodo - Uncomment if needed, or if already done it manually.
-
test_connection_zenodo --token $SANDBOX_ZENODO_TOKEN --sandbox True -
r
$CI_PROJECT_DIR
-
test_connection_zenodo --token $SANDBOX_ZENODO_TOKEN --sandbox True -
p
$CI_PROJECT_DIR
#- test_connection_zenodo -t $ZENODO_TOKEN -s False --project_dir $CI_PROJECT_DIR
script
:
...
...
@@ -78,7 +78,7 @@ test_deploy_from_container:
before_script
:
-
wget -q https://gitlab.in2p3.fr/escape2020/wp3/zenodoci/-/raw/master/zenodoci/parse_last_release.sh
-
pwd parse_last_release.sh
# testing/debugging
-
test_connection_zenodo --token $SANDBOX_ZENODO_TOKEN --sandbox True -
r
$CI_PROJECT_DIR
-
test_connection_zenodo --token $SANDBOX_ZENODO_TOKEN --sandbox True -
p
$CI_PROJECT_DIR
script
:
-
pwd
# testing/debugging
-
ls
# testing/debugging
...
...
zenodoci/test_connection_zenodo.py
View file @
7400d019
...
...
@@ -10,7 +10,7 @@ from zenodoci.zenodoapi import ZenodoAPI
def
main
():
# Required arguments
parser
=
argparse
.
ArgumentParser
(
description
=
"
Upload new deposit entry to Zenodo
"
)
parser
=
argparse
.
ArgumentParser
(
description
=
"
Test the connection to zenodo and all the stages of a new upload.
"
)
parser
.
add_argument
(
'--token'
,
'-t'
,
type
=
str
,
dest
=
'zenodo_token'
,
...
...
Write
Preview
Markdown
is supported
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