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-02 01:21:56 +0300
committerlovetox <philipp@hoerist.com>2021-01-02 01:21:56 +0300
commit433fc34cb9cdf5e2debbe3400033f729bcc5a194 (patch)
tree2e0827a734b80c2f668a2db086728b364bbb679d /scripts
parentfe7af4cf7fbd4e921c59a10fa5fcd943d2feb3f4 (diff)
Update CI
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/appveyor.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/ci/appveyor.py b/scripts/ci/appveyor.py
new file mode 100755
index 000000000..eb597b29f
--- /dev/null
+++ b/scripts/ci/appveyor.py
@@ -0,0 +1,22 @@
+#!/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()