forked from mtvbrianking/laravel-mtn-momo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (36 loc) · 1.04 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
language: php
cache:
directories:
- $HOME/.composer/cache/files
# https://docs.travis-ci.com/user/build-stages
jobs:
include:
- stage: test
php: 7.2
before_script:
- travis_retry composer self-update
- travis_retry composer update --prefer-lowest --no-ansi --no-interaction --no-progress --no-scripts
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
- stage: deploy
name: "Documentation"
php: 7.2
before_script:
- git clone https://github.com/mtvbrianking/laravel-mtn-momo.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