forked from mripard/sunxi-mali
-
Notifications
You must be signed in to change notification settings - Fork 1
/
travis.py
executable file
·48 lines (35 loc) · 1.26 KB
/
travis.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#! /usr/bin/env python3
import feedparser
def print_test(arch, version, defconfig, release):
print(" - env:")
print(" - ARCH: %s" % arch)
print(" KERNEL_VERSION: %s" % version)
print(" KERNEL_DEFCONFIG: %s" % defconfig)
print(" MALI_VERSION: %s" % release)
def retrieve_versions():
doc = feedparser.parse("https://www.kernel.org/feeds/kdist.xml")
versions = list()
for entry in doc.entries:
version = entry.title.split(':')[0].strip()
if "next-" in version:
continue
major = int(version.split('.')[0])
if "-rc" in version:
minor = int(version.split('-')[0].split('.')[1])
else:
minor = int(version.split('.')[1])
if major < 4:
continue
if minor < 4 and major <= 4:
continue
versions.append(version)
return versions
versions = retrieve_versions()
versions.reverse()
print("matrix:")
print(" include:")
for release in ("r6p0", "r6p2", "r8p1", "r9p0" , ):
for version in versions:
for defconfig in ("multi_v7_defconfig", "sunxi_defconfig", ):
print_test("arm", version, defconfig, release)
print_test("arm64", version, "defconfig", release)