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