ci

package
v3.4.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ci implements some helper functions to use during tests. Many times certain facilities are not available, or tests must run differently.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Env

func Env(v EnvVar) string

Env returns the value of a CI env variable.

func IsRunning

func IsRunning() bool

IsRunning attempts to determine whether this process is running on CI. This is done by checking any of:

CI=true
travis.IsRunning()
jenkins.IsRunning()

func NoFuse

func NoFuse() bool

Returns whether FUSE is explicitly disabled wiht TEST_NO_FUSE.

func Verbose

func Verbose() bool

Returns whether TEST_VERBOSE is enabled.

Types

type EnvVar

type EnvVar string

EnvVar is a type to use travis-only env var names with the type system.

const (
	VarCI      EnvVar = "CI"
	VarNoFuse  EnvVar = "TEST_NO_FUSE"
	VarVerbose EnvVar = "TEST_VERBOSE"
)

Environment variables that TravisCI uses.

Directories

Path Synopsis
Package jenkins implements some helper functions to use during tests.
Package jenkins implements some helper functions to use during tests.
Package travis implements some helper functions to use during tests.
Package travis implements some helper functions to use during tests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL