Commit b83347bd authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

no travis for private projects

parent 2e455888
Pipeline #2022 passed with stages
in 47 seconds
......@@ -386,7 +386,8 @@ class Project(Links, NamedModel, TimeStampedModel):
f'{self.url_gitlab()}/badges/master/coverage.svg?job=doc-coverage"', 'Coverage Report')
def badges(self):
return self.badge_travis() + self.badge_gitlab() + self.badge_coverage()
travis = self.badge_travis() if self.public else ''
return travis + self.badge_gitlab() + self.badge_coverage()
class Repo(TimeStampedModel):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment