-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (40 loc) · 1.22 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
language: php
cache:
directories:
- $HOME/.composer/cache/files
# https://docs.travis-ci.com/user/build-stages
jobs:
include:
- stage: test
php: 7.3
before_script:
- travis_retry composer self-update
- travis_retry composer update --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- stage: deploy
name: "Documentation"
if: branch = master
php: 7.3
before_script:
- git clone https://github.com/mtvbrianking/laravel-js-routes.git
install:
- curl -O http://get.sensiolabs.org/sami.phar
script:
- php sami.phar update .sami.dist
# https://docs.travis-ci.com/user/deployment/pages/
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local_dir: docs
on:
branch: master
# https://docs.travis-ci.com/user/notifications
notifications:
email:
on_success: never
on_failure: always