Commit 21361698 authored by Enrique Garcia's avatar Enrique Garcia
Browse files

install bash script when installing script from setup

parent 601100cc
Pipeline #106184 passed with stages
in 1 minute and 19 seconds
......@@ -29,6 +29,7 @@ deploy_zenodo:
#- python3 --version # 3.6 as expected
- pip install requests numpy
- pip install . # Install ZenodoCI
- which parse_last_release_git.sh
### 2 - Test the communication to Zenodo - Uncomment if needed, or if already done it manually.
- test_connection_zenodo --token $SANDBOX_ZENODO_TOKEN --sandbox True -p $CI_PROJECT_DIR
......@@ -39,7 +40,7 @@ deploy_zenodo:
### 4 - Download the repository and move it to the build directory
### If no release is found/correctly parsed, the script will download the last commit pushed to the master branch
- mkdir -p build
- /bin/bash zenodoci/parse_last_release.sh $CI_PROJECT_NAME $CI_PROJECT_URL
- parse_last_release_git.sh $CI_PROJECT_NAME $CI_PROJECT_URL
- ls ./build
### 5 - To deploy a NEW DEPOSIT to ZENODO SANDBOX
......
......@@ -25,6 +25,7 @@ setup(
'codemeta2zenodo_crosswalk @ git+https://gitlab.in2p3.fr/escape2020/wp3/codemeta2zenodo',
],
packages=find_packages(),
scripts=['zenodoci/parse_last_release_git.sh'],
# tests_require=['pytest'],
author='Enrique Garcia',
author_email='garcia<at>lapp.in2p3.fr',
......
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