forked from spiral-modules/php-grpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (59 loc) · 2 KB
/
.travis.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
dist: xenial
language: go
sudo: required
go:
- "1.12.x"
install:
- PROTOBUF_VERSION=3.7.0
- PROTOC_FILENAME=protoc-${PROTOBUF_VERSION}-linux-x86_64.zip
- pushd /home/travis
- wget https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/${PROTOC_FILENAME}
- unzip ${PROTOC_FILENAME}
- bin/protoc --version
- popd
- export GO111MODULE=on
- go mod download
- composer install --no-interaction --prefer-source --ignore-platform-reqs
- go get
script:
- go test -race -v -coverprofile=grpc.txt -covermode=atomic
- go test ./parser -race -v -coverprofile=parser.txt -covermode=atomic
- go test -race -v -coverprofile=protoc-gen-php-grpc.txt ./cmd/protoc-gen-php-grpc -covermode=atomic
- composer require phpunit/phpunit:~7.0 --ignore-platform-reqs
- vendor/bin/spiral-cs check src tests/GRPC
- vendor/bin/phpunit --coverage-clover=coverage.xml
- go build cmd/protoc-gen-php-grpc/main.go
- go build cmd/rr-grpc/main.go
after_success:
- bash <(curl -s https://codecov.io/bash) -f grpc.txt
- bash <(curl -s https://codecov.io/bash) -f parser.txt
- bash <(curl -s https://codecov.io/bash) -f coverage.xml
jobs:
include:
- stage: Test
env: "PHP=7.2"
before_install:
- sudo add-apt-repository -y ppa:ondrej/php
- sudo apt-get update
- sudo apt-get install -y php7.2-cli php7.2-xml php7.2-xdebug
- sudo cp `which php7.2` `which php`
- php -v
- composer self-update
- stage: Test
env: "PHP=7.3"
before_install:
- sudo add-apt-repository -y ppa:ondrej/php
- sudo apt-get update
- sudo apt-get install -y php7.3-cli php7.3-xml php7.3-xdebug
- sudo cp `which php7.3` `which php`
- php -v
- composer self-update
- stage: Test
env: "PHP=7.4"
before_install:
- sudo add-apt-repository -y ppa:ondrej/php
- sudo apt-get update
- sudo apt-get install -y php7.4-cli php7.4-xml php7.4-xdebug
- sudo cp `which php7.4` `which php`
- php -v
- composer self-update