Commit 6b7a3bff authored by garciadeblas's avatar garciadeblas
Browse files

Add new env for tox to test doc publication in the FTP



The script `upload_doc.sh` has been updated to allow passing a destination
folder where to upload the content to the FTP.

A new environment `test-publish`has been added to tox.ini to testing doc
publication, making use of the updates in `upload_doc.sh`

Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent d42e69a0
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -77,6 +77,16 @@ allowlist_externals =
        rm


#######################################################################################
[testenv:test-publish]
deps =  {[testenv]deps}
commands =
        sh -c './upload_doc.sh test-user-guide'
allowlist_externals =
        sh
        rm


#######################################################################################
[testenv:publish]
deps =  {[testenv]deps}
+3 −0
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@

source ./env

FOLDER=${1-${FOLDER}}
echo "Destination folder in the FTP: $FOLDER"

#
# Get credentias (file or interactive)
#