Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-08-21 10:01:20 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-08-21 10:01:20 +0000
commit71ddbd9e02a620e0fc6aa6c9f2264df133fbb851 (patch)
treecf1eb84940d929d4481e1b2d34a664323dfe5f5b /profiles
parent63b92f6ea719c31c6c498e7f79ceabc0bce0b6a1 (diff)
Added API for automatic testing status.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/52-54-00-12-34-56.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/profiles/52-54-00-12-34-56.py b/profiles/52-54-00-12-34-56.py
index 448b1c6d..870497e5 100644
--- a/profiles/52-54-00-12-34-56.py
+++ b/profiles/52-54-00-12-34-56.py
@@ -1,6 +1,7 @@
import archinstall
import json
import urllib.request
+import git
# Unmount and close previous runs
archinstall.sys_command(f'umount -R /mnt', surpress_errors=True)
@@ -33,8 +34,9 @@ with archinstall.Filesystem(harddrive, archinstall.GPT) as fs:
installation.add_AUR_support()
+ repo = git.Repo('./')
- conditions = {"profile" : "52-54-00-12-34-56", "status" : "successful"}
+ conditions = {"project" : "archinstall", "profile" : "52-54-00-12-34-56", "status" : "successful", "commit" : repo.head.commit.hexsha[:7]}
req = urllib.request.Request("https://archlinux.life/build/successful",
data=json.dumps(conditions).encode('utf8'),
headers={'content-type': 'application/json'})