Usage

Conditional Configuration

Appveyor

ci {
    appveyor { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m' (2)
       }
    }
}
1 Only run this configuration when on AppVeyor
2 By example you can set the JVM Args for tests when on Appveyor.

Amazon CodeBuild

ci {
    codebuild { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m' (2)
       }
    }
}
1 Only run this configuration when on AppVeyor
2 By example you can set the JVM Args for tests when building on Amazon CodeBuild.

Bamboo

ci {
    bamboo { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Only use this configuration if an Atlassian Bamboo agent is detected.

Circle CI

ci {
    circleci { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Only run this configuration when on Circle CI.

Codeship

ci {
    codeship { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Only run this configuration when on Codeship.

Drone

ci {
    drone { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Only use this configuration if a Drone agent is detected.

GitHub Actions

ci {
    githubactions { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Only use this configuration if a GitHub Actions build is detected.

GitLab Runners

ci {
    gitlabci { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Only use this configuration if a GitLab runner is detected.

Go CD

ci {
    gocd { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Only run this configuration when on Go CD.

Jenkins CI

ci {
    jenkinsci { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Only run this configuration when on a Jenkins CI server.

Teamcity

ci {
    travisci { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Only run this configuration when on Jetbrains Teamcity

Travis CI

ci {
    travisci { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Only run this configuration when on Travis CI

Any supported CI

ci {
    any_ci { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Run this configuration if executed under any of the supported CI environments. Use any_ci, as the use of any from previous releases is deprecated).

No CI

ci {
    no_ci { (1)
       tasks.named('test', Test) {
         jvmArgs '-Xmx:2048m'
       }
    }
}
1 Only run this configuration if none of the supported CI environments are detected.