From 220ee569dcf3157a5bfe5ddd99477fa7e276a22b Mon Sep 17 00:00:00 2001 From: David Vogel Date: Sun, 14 Jul 2019 20:43:21 +0200 Subject: [PATCH] Prepare build & skip some tests on CI --- main.go | 2 +- pixelcanvas.io_test.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 9e01a4c..1f6e247 100644 --- a/main.go +++ b/main.go @@ -49,7 +49,7 @@ func init() { log.Fatalf("Can't get working directory") } - version, err = semver.NewVersion("0.1.4-pre") + version, err = semver.NewVersion("0.1.4") if err != nil { fmt.Println(err.Error()) } diff --git a/pixelcanvas.io_test.go b/pixelcanvas.io_test.go index 4d24746..babe189 100644 --- a/pixelcanvas.io_test.go +++ b/pixelcanvas.io_test.go @@ -43,6 +43,11 @@ func saveCanvasImage(can *canvas, rect image.Rectangle, filename string) error { } func Test_newPixelcanvasio(t *testing.T) { + + if os.Getenv("CI") == "true" { + t.Skip("Skipping testing in CI environment") + } + con, can := newPixelcanvasio() defer con.Close()