forked from googleapis/google-cloud-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (48 loc) · 1.41 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
language: php
jobs:
include:
- php: hhvm-3.24
fast_finish: true
install:
- composer self-update
- travis_retry composer install
- ./dev/google-cloud credentials
- composer --no-interaction --dev remove google/protobuf google/gax
- stage: "Push Docs"
php: 7.2
install:
- travis_retry composer install
script:
- ./dev/sh/build-docs
- ./dev/sh/push-docs $TRAVIS_BRANCH
- stage: "Split Components"
php: 7.2
install:
- travis_retry composer install
script:
- git fetch --unshallow
- ./dev/google-cloud split $TRAVIS_TAG
notifications:
email:
recipients:
on_success: always
on_failure: always
stages:
- test
- name: "Push Docs"
if: ((type != pull_request) AND (branch = master)) OR (tag IS present)
- name: "Split Components"
if: (tag IS present)
env:
global:
- GOOGLE_CLOUD_PHP_TESTS_KEY_PATH=$TRAVIS_BUILD_DIR/keys/GOOGLE_CLOUD_PHP_TESTS.json
- GOOGLE_CLOUD_PHP_WHITELIST_TESTS_KEY_PATH=$TRAVIS_BUILD_DIR/keys/GOOGLE_CLOUD_PHP_TESTS_WHITELIST.json
script:
- ./dev/sh/tests
after_success:
- if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then bash <(curl -s https://codecov.io/bash); fi