diff options
author | lovetox <philipp@hoerist.com> | 2021-01-02 01:21:56 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2021-01-02 01:21:56 +0300 |
commit | 433fc34cb9cdf5e2debbe3400033f729bcc5a194 (patch) | |
tree | 2e0827a734b80c2f668a2db086728b364bbb679d /scripts | |
parent | fe7af4cf7fbd4e921c59a10fa5fcd943d2feb3f4 (diff) |
Update CI
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci/appveyor.py | 22 |
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() |