language: go
go_import_path: github.com/fhs/go-netcdf

env:
  global:
    - GO111MODULE=on

go:
  - "1.10.x"
  - "1.11.x"
  - "1.12.x"

before_install:
  - sudo apt-get update -q -y
  - sudo apt-get install libnetcdf-dev -y

script:
  - go install -v ./...
  - test `gofmt -l . | wc -l` = 0
  - go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...

after_success:
  - bash <(curl -s https://codecov.io/bash)

language: go
go_import_path: github.com/fhs/go-netcdf
dist: bionic

env:
  global:
    - GO111MODULE=on

go:
  - "1.10.x"
  - "1.11.x"
  - "1.12.x"

before_install:
  - sudo apt-get update -q -y
  - sudo apt-get install libnetcdf-dev -y

script:
  - go install -v ./...
  - test `gofmt -l . | wc -l` = 0
  - go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...

after_success:
  - bash <(curl -s https://codecov.io/bash)

Use Ubuntu Bionic 18.04 in CI
Use Ubuntu Bionic 18.04 in CI

The current default, Xenial 16.04, has netcdf 4.4 in it's repo. In-memory
support requires at least 4.6, which is available with Bionic.
