Skip to content

Commit

Permalink
Update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Jun 8, 2020
1 parent 70c38c1 commit 85ab542
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ env:
- GO111MODULE=on CGO_ENABLED=0
before_install:
- go get github.com/mattn/goveralls
- sudo apt-get update
- sudo apt-get install -qq libgl1-mesa-dev xorg-dev
- rm -Rf htmlcanvas examples/html-canvas examples/opengl
# - sudo apt-get update
# - sudo apt-get install -qq libgl1-mesa-dev xorg-dev
# - rm -Rf htmlcanvas examples/html-canvas examples/opengl
script:
- go test -covermode=count -coverprofile=profile.cov ./...
- goveralls -coverprofile=profile.cov -service=travis-ci
Expand Down
10 changes: 5 additions & 5 deletions font/woff2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestWOFF2ValidationDecoder(t *testing.T) {
}
for _, filename := range filenames {
t.Run(filename, func(t *testing.T) {
b, err := ioutil.ReadFile("testdata/woff2_decoder/" + filename + ".woff2")
b, err := ioutil.ReadFile("./testdata/woff2_decoder/" + filename + ".woff2")
test.Error(t, err)
_, err = ParseWOFF2(b)
test.Error(t, err)
Expand All @@ -108,9 +108,9 @@ func TestWOFF2ValidationDecoderRoundtrip(t *testing.T) {
}
for _, filename := range filenames {
t.Run(filename, func(t *testing.T) {
a, err := ioutil.ReadFile("testdata/woff2_decoder/" + filename + ".ttf")
a, err := ioutil.ReadFile("./testdata/woff2_decoder/" + filename + ".ttf")
test.Error(t, err)
b, err := ioutil.ReadFile("testdata/woff2_decoder/" + filename + ".woff2")
b, err := ioutil.ReadFile("./testdata/woff2_decoder/" + filename + ".woff2")
test.Error(t, err)
b, err = ParseWOFF2(b)
test.Error(t, err)
Expand Down Expand Up @@ -425,7 +425,7 @@ func TestWOFF2ValidationFormat(t *testing.T) {
}
for _, tt := range tts {
t.Run(tt.filename, func(t *testing.T) {
b, err := ioutil.ReadFile("testdata/woff2_format/" + tt.filename + ".woff2")
b, err := ioutil.ReadFile("./testdata/woff2_format/" + tt.filename + ".woff2")
test.Error(t, err)
_, err = ParseWOFF2(b)
if tt.err == "" {
Expand Down Expand Up @@ -470,7 +470,7 @@ func TestWOFF2ValidationUserAgent(t *testing.T) {
}
for _, tt := range tts {
t.Run(tt.filename, func(t *testing.T) {
b, err := ioutil.ReadFile("testdata/woff2_useragent/" + tt.filename + ".woff2")
b, err := ioutil.ReadFile("./testdata/woff2_useragent/" + tt.filename + ".woff2")
test.Error(t, err)
_, err = ParseWOFF2(b)
if tt.err == "" {
Expand Down
5 changes: 4 additions & 1 deletion font/woff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package font
import (
"fmt"
"io/ioutil"
"log"
"os"
"testing"

"github.com/tdewolff/test"
Expand Down Expand Up @@ -83,8 +85,9 @@ func TestWOFFValidationFormat(t *testing.T) {
{"tabledata-zlib-001", "name: zlib: invalid header"},
}
for _, tt := range tts {
log.Fatalln(os.Getwd())
t.Run(tt.filename, func(t *testing.T) {
b, err := ioutil.ReadFile("testdata/woff_format/" + tt.filename + ".woff")
b, err := ioutil.ReadFile("./testdata/woff_format/" + tt.filename + ".woff")
test.Error(t, err)
_, err = ParseWOFF(b)
if tt.err == "" {
Expand Down

0 comments on commit 85ab542

Please sign in to comment.