Drop travis probing.
This commit is contained in:
parent
bd1d18a890
commit
37f56f8556
1 changed files with 0 additions and 24 deletions
|
@ -83,10 +83,6 @@ class BuildSystem(object):
|
||||||
def probe(cls, path):
|
def probe(cls, path):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def probe_from_travis(cls, path, data):
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
class Pear(BuildSystem):
|
class Pear(BuildSystem):
|
||||||
|
|
||||||
|
@ -782,12 +778,6 @@ class Golang(BuildSystem):
|
||||||
if entry.name.endswith(".go"):
|
if entry.name.endswith(".go"):
|
||||||
return Golang(path)
|
return Golang(path)
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def probe_from_travis(cls, path, data):
|
|
||||||
language = data.get("language")
|
|
||||||
if language == "go":
|
|
||||||
return cls(path)
|
|
||||||
|
|
||||||
|
|
||||||
class Maven(BuildSystem):
|
class Maven(BuildSystem):
|
||||||
|
|
||||||
|
@ -888,20 +878,6 @@ def detect_buildsystems(path, trust_package=False):
|
||||||
if bs is not None:
|
if bs is not None:
|
||||||
yield bs
|
yield bs
|
||||||
|
|
||||||
if os.path.exists(os.path.join(path, ".travis.yml")):
|
|
||||||
import ruamel.yaml.reader
|
|
||||||
|
|
||||||
with open(os.path.join(path, ".travis.yml"), "rb") as f:
|
|
||||||
try:
|
|
||||||
data = ruamel.yaml.load(f, ruamel.yaml.SafeLoader)
|
|
||||||
except ruamel.yaml.reader.ReaderError as e:
|
|
||||||
warnings.warn("Unable to parse .travis.yml: %s" % (e,))
|
|
||||||
else:
|
|
||||||
for bs_cls in BUILDSYSTEM_CLSES:
|
|
||||||
bs = bs_cls.probe_from_travis(path, data)
|
|
||||||
if bs is not None:
|
|
||||||
yield bs
|
|
||||||
|
|
||||||
|
|
||||||
def get_buildsystem(path, trust_package=False):
|
def get_buildsystem(path, trust_package=False):
|
||||||
for buildsystem in detect_buildsystems(path, trust_package=trust_package):
|
for buildsystem in detect_buildsystems(path, trust_package=trust_package):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue