language: go

go:
  - 1.6
  - 1.7
  - tip

env:
  - TURBO_VER=""
  - TURBO_VER="1.5.1" CGO_LDFLAGS="-L/tmp/libjpeg-turbo/lib64" CGO_CPPFLAGS="-I/tmp/libjpeg-turbo/include" LD_LIBRARY_PATH="/tmp/libjpeg-turbo/lib64"

before_install:
  - ./travis-install-libjpeg-turbo.sh "$TURBO_VER"
  - cd $HOME/gopath/src/github.com/pixiv/go-libjpeg

script:
  - go test -a -test.v ./...
  - cd jpeg && go test -a -bench . -benchtime 10s

language: go

go:
  - 1.6
  - 1.7
  - 1.8
  - 1.9
  - "1.10"
  - tip

env:
  - TURBO_VER=""
  - TURBO_VER="1.5.1" CGO_LDFLAGS="-L/tmp/libjpeg-turbo/lib64" CGO_CPPFLAGS="-I/tmp/libjpeg-turbo/include" LD_LIBRARY_PATH="/tmp/libjpeg-turbo/lib64"

before_install:
  - ./travis-install-libjpeg-turbo.sh "$TURBO_VER"
  - cd $HOME/gopath/src/github.com/pixiv/go-libjpeg

script:
  - go test -a -test.v ./...
  - cd jpeg && go test -a -bench . -benchtime 10s

Test recent versions of Go
Test recent versions of Go
