1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-08-05 22:37:45 +02:00

Added github pages deployment setup to travis

This commit is contained in:
Andrew Davis
2018-09-02 16:34:14 -05:00
parent 62a94befda
commit 4edee9a818

View File

@@ -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