language: go

install:
  - export FILE=go_appengine_sdk_linux_amd64-1.9.40.zip
  - curl -O https://storage.googleapis.com/appengine-sdks/featured/$FILE
  - unzip -q $FILE
  - export PATH=$PATH:./go_appengine/
  - goapp get google.golang.org/appengine
  - goapp get github.com/line/line-bot-sdk-go/linebot
  - goapp get golang.org/x/text/encoding/japanese
  - goapp get golang.org/x/text/transform
  - goapp get golang.org/x/tools/cmd/cover
  - goapp get github.com/mattn/goveralls

script:
  - goapp test -v -covermode=count -coverprofile=coverage.out
  - $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN

language: go

install:
  - export FILE=go_appengine_sdk_linux_amd64-1.9.40.zip
  - curl -O https://storage.googleapis.com/appengine-sdks/featured/$FILE
  - unzip -q $FILE
  - export PATH=$PATH:./go_appengine/
  - goapp get google.golang.org/appengine
  - goapp get github.com/line/line-bot-sdk-go/linebot
  - goapp get golang.org/x/text/encoding/japanese
  - goapp get golang.org/x/text/transform
  - goapp get golang.org/x/tools/cmd/cover
  - goapp get github.com/mattn/goveralls

script:
  - goapp test -v -covermode=count -coverprofile=coverage.out

after_success:
  - $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN

Move run 'goveralls' command to after_success section
Move run 'goveralls' command to after_success section
