Exemplo n.º 1
0
func TestBuildImageCircleCI(t *testing.T) {
	os.Setenv("CIRCLECI", "true")
	app := App{Build: "test/noCaptainYML/Dockerfile", Image: "captain_test"}
	res := buildImage(app, "latest")
	assert.Nil(t, res, "Docker build should not return any error")
}
Exemplo n.º 2
0
func TestTagImage(t *testing.T) {
	app := App{Image: "golang"}
	res := tagImage(app, "1.4", "testing")
	assert.Nil(t, res, "Docker tag should not return any error")
}
Exemplo n.º 3
0
func TestBuildImage(t *testing.T) {
	app := App{Build: "test/noCaptainYML/Dockerfile", Image: "captain_test"}
	res := buildImage(app, "latest")
	assert.Nil(t, res, "Docker build should not return any error")
}