language: go
go:
- '1.11'
git:
  depth: 3
os:
- linux
env:
  global:
  - GO111MODULE=on
  - ANWORK_TEST_SQL_DSN=travis@tcp\(127.0.0.1\)/anwork_sql_test
services:
  - mysql
before_install:
  - mysql -e 'CREATE DATABASE anwork_sql_test;'
install:
- go mod download
- go install -v github.com/onsi/ginkgo/ginkgo
script:
- go vet ./...
- "./ci/check-fmt.sh"
- "./ci/test.sh"
after_success:
- bash <(curl -s https://codecov.io/bash) -f *.coverprofile
notifications:
  email:
    recipients:
    - ankeesler1@gmail.com
    on_failure: always
