Skip to content

Commit

Permalink
Enable remote docs deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtvbrianking committed Dec 28, 2019
1 parent 6c6a0fe commit a7862ce
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
36 changes: 18 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,29 @@ jobs:
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

# - stage: deploy
- stage: deploy

# name: "Documentation"
name: "Documentation"

# php: 7.2

# before_script:
# - git clone https://github.com/mtvbrianking/laravel-api-filters.git
php: 7.2

# install:
# - curl -O http://get.sensiolabs.org/sami.phar
before_script:
- git clone https://github.com/mtvbrianking/laravel-package-boilerplate.git

# script:
# - php sami.phar update .sami.dist
install:
- curl -O http://get.sensiolabs.org/sami.phar

# # https://docs.travis-ci.com/user/deployment/pages/
# deploy:
# provider: pages
# skip-cleanup: true
# github-token: $GITHUB_TOKEN
# local_dir: docs
# on:
# branch: master
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:
Expand Down
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://travis-ci.org/mtvbrianking/laravel-package-boilerplate.svg?branch=master)](https://travis-ci.org/mtvbrianking/laravel-package-boilerplate)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mtvbrianking/laravel-package-boilerplate/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mtvbrianking/laravel-package-boilerplate/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/mtvbrianking/laravel-package-boilerplate/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/mtvbrianking/laravel-package-boilerplate/?branch=master)
[![StyleCI](https://github.styleci.io/repos/230489612/shield?branch=master)](https://github.styleci.io/repos/230489612)
[![StyleCI](https://github.styleci.io/repos/230607368/shield?branch=master)](https://github.styleci.io/repos/230607368)
[![Documentation](https://img.shields.io/badge/Documentation-Blue)](https://mtvbrianking.github.io/laravel-package-boilerplate)

### [Installation](https://packagist.org/packages/bmatovu/laravel-package-boilerplate)
Expand All @@ -28,9 +28,7 @@ composer dump-autoload

You need to download [sami](https://github.com/FriendsOfPHP/Sami) for document generation.

If you need auto document generation remotely, uncomment the documentation step in `travis.yml`.

And add a `Github token` for authorization.
To auto deploy documentation; be sure to add a [`Github token`](https://github.com/settings/tokens) for authorization.

```
curl -O http://get.sensiolabs.org/sami.phar
Expand All @@ -52,10 +50,12 @@ $ php-cs-fixer fix

You may publish your package via [Packagist](#)

## Testing

We've defaulted to [Orchestra's testbench](https://github.com/orchestral/testbench)

## Useful resource

- [Laravel Package Development](https://laravel.com/docs/master/packages)

## Testing

We've defaulted to [Orchestra's testbench](https://github.com/orchestral/testbench)
- [Travis CI + GitHub Pages - Automated deployment](https://www.youtube.com/watch?v=BFpSD2eoXUk)

0 comments on commit a7862ce

Please sign in to comment.