Example #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")
}
Example #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")
}
Example #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")
}