mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-08-05 06:17:37 +02:00
Added github pages deployment setup to travis
This commit is contained in:
19
.travis.yml
19
.travis.yml
@@ -3,12 +3,31 @@ language: php
|
||||
php:
|
||||
- '7.1'
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache
|
||||
- $HOME/.npm
|
||||
|
||||
before_install:
|
||||
- nvm install 8
|
||||
|
||||
install:
|
||||
- composer update --prefer-dist --no-interaction --prefer-stable --no-suggest
|
||||
- npm update
|
||||
|
||||
script:
|
||||
- php apprentice build
|
||||
- npm run prod
|
||||
- vendor/bin/phpunit
|
||||
|
||||
deploy:
|
||||
provider: pages
|
||||
skip-cleanup: true
|
||||
local-dir: .build
|
||||
target-branch: gh-pages
|
||||
on:
|
||||
branch: master
|
||||
|
Reference in New Issue
Block a user