From 303ed25c49dcdeba8132150617bbc61947bbf6fb Mon Sep 17 00:00:00 2001 From: Xavier Ivars-Ribes Date: Sat, 18 Jul 2020 12:42:56 +0200 Subject: [PATCH] Move job to manual --- .gitlab-ci.yml | 11 ++++ programs/libreoffice/Pipfile | 12 +++++ programs/libreoffice/Pipfile.lock | 57 ++++++++++++++++++++ programs/libreoffice/libreoffice-valencia.sh | 4 +- 4 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml create mode 100644 programs/libreoffice/Pipfile create mode 100644 programs/libreoffice/Pipfile.lock diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..aee7b16 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,11 @@ +stages: + - programs + +libreoffice: + image: python:3.8 + services: + - docker:dind + stage: programs + script: ./programs/libreoffice/libreoffice-valencia.sh + rules: + - if: '$PROGRAM == "LIBREOFFICE"' diff --git a/programs/libreoffice/Pipfile b/programs/libreoffice/Pipfile new file mode 100644 index 0000000..b799f0f --- /dev/null +++ b/programs/libreoffice/Pipfile @@ -0,0 +1,12 @@ +[[source]] +name = "pypi" +url = "https://pypi.org/simple" +verify_ssl = true + +[dev-packages] + +[packages] +requests = "*" + +[requires] +python_version = "3.8" diff --git a/programs/libreoffice/Pipfile.lock b/programs/libreoffice/Pipfile.lock new file mode 100644 index 0000000..c175606 --- /dev/null +++ b/programs/libreoffice/Pipfile.lock @@ -0,0 +1,57 @@ +{ + "_meta": { + "hash": { + "sha256": "bb57e0d7853b45999e47c163c46b95bc2fde31c527d8d7b5b5539dc979444a6d" + }, + "pipfile-spec": 6, + "requires": { + "python_version": "3.7" + }, + "sources": [ + { + "name": "pypi", + "url": "https://pypi.org/simple", + "verify_ssl": true + } + ] + }, + "default": { + "certifi": { + "hashes": [ + "sha256:5930595817496dd21bb8dc35dad090f1c2cd0adfaf21204bf6732ca5d8ee34d3", + "sha256:8fc0819f1f30ba15bdb34cceffb9ef04d99f420f68eb75d901e9560b8749fc41" + ], + "version": "==2020.6.20" + }, + "chardet": { + "hashes": [ + "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae", + "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691" + ], + "version": "==3.0.4" + }, + "idna": { + "hashes": [ + "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6", + "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0" + ], + "version": "==2.10" + }, + "requests": { + "hashes": [ + "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b", + "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898" + ], + "index": "pypi", + "version": "==2.24.0" + }, + "urllib3": { + "hashes": [ + "sha256:3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527", + "sha256:88206b0eb87e6d677d424843ac5209e3fb9d0190d0ee169599165ec25e9d9115" + ], + "version": "==1.25.9" + } + }, + "develop": {} +} diff --git a/programs/libreoffice/libreoffice-valencia.sh b/programs/libreoffice/libreoffice-valencia.sh index ef8b2fd..d5cad30 100755 --- a/programs/libreoffice/libreoffice-valencia.sh +++ b/programs/libreoffice/libreoffice-valencia.sh @@ -19,7 +19,9 @@ sed -i -e "s|^:END$|s\/^\\\(\\\\\"Language-Team\\\): .*\\\\\\\n/\\\\1: $team\\\\ rm -R "translations/*" # Cridem l'script de Python que fa la feina -./libreoffice-valencia.py +pip3 install pipenv +pipenv install requests +pipenv run python ./libreoffice-valencia.py # Neteja