---
language: go
go:
  - 1.9.x
jobs:
  include:
    - stage: format check
      script: ./fmtpolice
    - stage: tests
      script: go test -v ./...
    - stage: integration tests
      script: go test -tags integration -v ./...
      if: branch = master
notifications:
  email:
    recipients:
      - webteam@himalayaninstitute.org
    on_success: never
    on_failure: change

---
language: go
go:
  - 1.9.x
jobs:
  include:
    - stage: format check
      script: ./fmtpolice
    - stage: tests
      script: go test -v ./...
    - stage: integration tests
      script: go test -tags integration -v ./...
      if: type != pull_request
notifications:
  email:
    recipients:
      - webteam@himalayaninstitute.org
    on_success: never
    on_failure: change

Update Travis CI yml so integration tests don't run on pull requests
Update Travis CI yml so integration tests don't run on pull requests
