forked from kylekatarnls/carbon-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (35 loc) · 1.1 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
language: php
cache:
apt: true
directories:
- $HOME/.composer/cache
sudo: false
install:
- if [[ $setup = 'nightly' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --ignore-platform-reqs; fi
- if [[ $setup = 'basic' ]]; then travis_retry composer update --prefer-dist --prefer-stable --no-interaction --no-suggest; fi
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-text
after_success:
- bash <(curl -s https://codecov.io/bash)
after_script:
- cp coverage.xml clover.xml
- ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT
env:
global:
- setup=basic
- CC_TEST_REPORTER_ID=a706e45a0731ff71fe03470fefba2e1469a856018f131d0aee0be3f26ec4fc16
branches:
only:
- gh-pages
- /.*/
matrix:
include:
- php: '7.1'
- php: '7.2'
- php: '7.3'
- php: nightly
env: setup=nightly