aboutsummaryrefslogtreecommitdiffstats
path: root/.cirrus.star
blob: 501a4bfc50cef2340a2d6d265066f9c77206a899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
load("github.com/SonarSource/cirrus-modules@v2", "load_features")
load("cirrus", "env", "fs", "yaml")


def main(ctx):
    if env.get("CIRRUS_REPO_FULL_NAME") == 'SonarSource/sonar-enterprise':
        features = yaml.dumps(load_features(ctx, only_if=dict()))
        doc = fs.read("private/.cirrus.yml")
        return features + doc

    # On SonarSource/sonarqube repo, we don't trigger any Cirrus build
    return []