Get information about the current Continuous Integration (CI) environment. Inspired by watson/ci-info.
$ go get github.com/adamdecaf/cidetails
package main
import (
"testing"
"github.com/adamdecaf/cidetails"
)
func TestFoo(t *testing.T) {
if cidetails.In("TravisCI") {
// provider specific code
} else {
t.Logf("skipping CI setup in %s", cidetails.Name())
}
}
Officially supported CI servers:
- AppVeyor
- AWS CodeBuild
- Azure Pipelines
- Bamboo by Atlassian
- Bitbucket Pipelines
- Bitrise
- Buddy
- Buildkite
- CircleCI
- Cirrus CI
- Codeship
- Drone
- dsari
- GitLab CI
- GoCD
- Hudson
- Jenkins CI
- Magnum CI
- Netlify CI
- Nevercode
- Sail CI
- Semaphore
- Shippable
- Solano CI
- Strider CD
- TaskCluster
- TeamCity by JetBrains
- Travis CI
Apache License 2.0 See LICENSE for details.