Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2021-01-03 15:28:53 +0300
committerlovetox <philipp@hoerist.com>2021-01-03 15:28:53 +0300
commit389200873d619972e38f5083bd107a766af97653 (patch)
tree48b4359887638b7eb0a8dc9425b7d55f438e375d /scripts
parent333eed68cd12fcaec91efd308da85f0def27995d (diff)
Remove CI scripts
They are now loaded from the ci repo
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/appveyor.py22
-rwxr-xr-xscripts/ci/sdist.py62
2 files changed, 0 insertions, 84 deletions
diff --git a/scripts/ci/appveyor.py b/scripts/ci/appveyor.py
deleted file mode 100755
index eb597b29f..000000000
--- a/scripts/ci/appveyor.py
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env python3
-
-import os
-import requests
-
-webhook_key = os.environ['APPVEYOR_WEBHOOK_KEY']
-branch = os.environ['CI_COMMIT_BRANCH']
-
-url = f'https://ci.appveyor.com/api/git/webhook?id={webhook_key}'
-ref = f'refs/heads/{branch}'
-
-with open('appveyor.yml', 'r') as file:
- yaml = file.read()
-
-payload = {
- 'ref': ref,
- 'repository': {'name': 'Gajim'},
- 'config': yaml
-}
-
-req = requests.post(url, json=payload)
-req.raise_for_status()
diff --git a/scripts/ci/sdist.py b/scripts/ci/sdist.py
deleted file mode 100755
index 985880c0f..000000000
--- a/scripts/ci/sdist.py
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/usr/bin/env python3
-
-import os
-import io
-import zipfile
-import subprocess
-import shutil
-from pathlib import Path
-import requests
-
-PLUGINS = [
- 'plugin_installer',
-]
-
-PLUGINS_BASE_URL = 'https://ftp.gajim.org'
-PLUGINS_FOLDER = Path('./gajim/data/plugins')
-
-COMMIT_BRANCH = os.environ['CI_COMMIT_BRANCH']
-
-
-def get_plugins_folder():
- if COMMIT_BRANCH == 'master':
- return 'plugins_master_zip'
-
- version = COMMIT_BRANCH.split('_')[1]
- return f'plugins_{version}_zip'
-
-
-def get_plugins_url(plugin):
- folder = get_plugins_folder()
- return f'{PLUGINS_BASE_URL}/{folder}/{plugin}.zip'
-
-
-def extraxt_zip(zip_bytes, path):
- print('Extract to', path)
- with zipfile.ZipFile(io.BytesIO(zip_bytes)) as zip_file:
- zip_file.extractall(path)
-
-
-def download_plugins():
- PLUGINS_FOLDER.mkdir(parents=True)
- for plugin in PLUGINS:
- url = get_plugins_url(plugin)
- print('Download', url)
- req = requests.get(url)
- req.raise_for_status()
- extraxt_zip(req.content, PLUGINS_FOLDER)
-
-
-def setup():
- print('Setup')
- subprocess.call(['python3', 'setup.py', 'sdist'])
-
-
-def cleanup():
- print('Cleanup')
- shutil.rmtree(PLUGINS_FOLDER)
-
-
-download_plugins()
-setup()
-cleanup()