summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 1edcdf9b199b1d5017b4fa91e17ed61014472ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: go

sudo: required

go:
  - "1.8"
  - "1.9"
  - "1.10.x"

php:
  - "7.0"
  - "7.1"
  - "7.2"

before_install:
  - go version
  - composer self-update

install:
  - go get "github.com/spiral/roadrunner"
  - rm -rf $GOPATH/src/github.com/spiral/roadrunner/*
  - cp -r * $GOPATH/src/github.com/spiral/roadrunner
  - go get -u "github.com/spiral/goridge"
  - go get -u "github.com/sirupsen/logrus"
  - go get -u "github.com/pkg/errors"
  - go get -u "github.com/stretchr/testify/assert"
  - composer install --no-interaction --prefer-source

script:
  - go test -race -v -coverprofile=lib.txt -covermode=atomic
  - go test ./service -race -v -coverprofile=service.txt -covermode=atomic
  - go test ./service/rpc -race -v -coverprofile=rpc.txt -covermode=atomic
  - go test ./service/http -race -v -coverprofile=http.txt -covermode=atomic

after_success:
  - bash <(curl -s https://codecov.io/bash) -f lib.txt
  - bash <(curl -s https://codecov.io/bash) -f service.txt
  - bash <(curl -s https://codecov.io/bash) -f rpc.txt
  - bash <(curl -s https://codecov.io/bash) -f http.txt