Skip to content

Commit a44db1a

Browse files
committed
Travis: add a build check for the GH Pages site
Adding a stage to check on each PR and merge to `master` whether the GH pages site can be build without errors.
1 parent a983cd6 commit a44db1a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
os: linux
12
dist: trusty
23

34
language: php
@@ -10,6 +11,7 @@ cache:
1011
- $HOME/.composer/cache/files
1112
# Cache directory for more recent Composer versions.
1213
- $HOME/.cache/composer/files
14+
- /home/travis/.rvm/
1315

1416
php:
1517
- 5.5
@@ -31,6 +33,8 @@ env:
3133
# See: https://docs.travis-ci.com/user/conditions-v1
3234
stages:
3335
- name: sniff
36+
- name: docs
37+
if: branch IN (master)
3438
- name: quicktest
3539
if: type = push AND branch NOT IN (master, develop)
3640
- name: test
@@ -66,6 +70,24 @@ jobs:
6670
# Check the code-style consistency of the xml files.
6771
- diff -B ./PHPCSUtils/ruleset.xml <(xmllint --format "./PHPCSUtils/ruleset.xml")
6872
- diff -B ./PHPCS23Utils/ruleset.xml <(xmllint --format "./PHPCS23Utils/ruleset.xml")
73+
after_success: skip
74+
75+
#### DOCUMENTATION SITE TESTING STAGE ####
76+
- stage: docs
77+
language: ruby
78+
cache: bundler
79+
rvm:
80+
- 2.5.8
81+
before_install: skip
82+
install:
83+
- cd ./docs
84+
- gem install bundler
85+
- bundle install
86+
before_script: skip
87+
script:
88+
# Test the documentation generation.
89+
- bundle exec jekyll build
90+
after_success: skip
6991

7092
#### QUICK TEST STAGE ####
7193
# This is a much quicker test which only runs the unit tests and linting against the low/high

0 commit comments

Comments
 (0)