language: go

go_import_path: project-root

services:
  - mysql

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

before_install:
  - mysql -e 'CREATE DATABASE webapitest;'
  - export GOPATH=$HOME/gopath/src/project-root
  - export PATH=$HOME/gopath/src/project-root/bin:$PATH
  - cd $GOPATH/src/app/webapi
  - go get github.com/axw/gocov/gocov
  - go get github.com/mattn/goveralls
  - go get golang.org/x/tools/cmd/cover
  - npm install -g dredd@5.1.11
  - go build -o ./cmd/webapi/webapi app/webapi/cmd/webapi
  - cp testdata/config.json ./config.json

before_script:
  - dredd

script:
  - $GOPATH/bin/goveralls
language: go

go_import_path: project-root

services:
  - mysql

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

cache:
  directories:
    - $HOME/gopath/src/project-root/src/app/webapi/node_modules

before_install:
  - mysql -e 'CREATE DATABASE webapitest;'
  - export GOPATH=$HOME/gopath/src/project-root
  - export PATH=$HOME/gopath/src/project-root/bin:$PATH
  - cd $GOPATH/src/app/webapi
  - go get github.com/axw/gocov/gocov
  - go get github.com/mattn/goveralls
  - go get golang.org/x/tools/cmd/cover
  - npm install -g dredd@5.1.11
  - go build -o ./cmd/webapi/webapi app/webapi/cmd/webapi
  - go build -o ./cmd/hooks/hooks app/webapi/cmd/hooks
  - cp testdata/config.json ./config.json

before_script:
  - dredd

script:
  - $GOPATH/bin/goveralls
Add cache and hooks command
Add cache and hooks command
