Skip to content

Commit

Permalink
Prepare build & skip some tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadido3 committed Jul 14, 2019
1 parent 144ad5d commit 220ee56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
5 changes: 5 additions & 0 deletions pixelcanvas.io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 220ee56

Please sign in to comment.