Skip to content

Commit c9e50d3

Browse files
authored
Merge pull request #359 from FriendsOfSymfony/cleanup-doc-build
only build doc in one build
2 parents 795b769 + 281bee7 commit c9e50d3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.travis.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ matrix:
1515
- php: 5.6
1616
env: SYMFONY_VERSION=2.7.* VARNISH_VERSION=3.0 COMPOSER_FLAGS="--prefer-lowest"
1717
- php: 7.0
18-
env: VARNISH_VERSION=4.1
18+
env:
19+
- VARNISH_VERSION=4.1
20+
- DOCCHECK=true
1921

2022
branches:
2123
only:
@@ -42,17 +44,17 @@ before_script:
4244
sudo apt-get update -qq
4345
sudo apt-get install -qq varnish
4446
fi
45-
- sudo apt-get install -qq python-sphinx enchant
46-
- sudo pip install -r doc/requirements.txt
47+
- if [ "$DOCCHECK" = true ]; then sudo apt-get install -qq python-sphinx enchant; fi
48+
- if [ "$DOCCHECK" = true ]; then sudo pip install -r doc/requirements.txt; fi
4749
# Install NGINX
4850
- sh ./tests/install-nginx.sh
4951
# Starting webserver
5052
- if [ "$TRAVIS_PHP_VERSION" = 'hhvm' ]; then ./tests/ci/install-apache-hhvm.sh; fi
5153

5254
script:
5355
- vendor/bin/phpunit --coverage-clover=coverage.clover
54-
- make -C doc SPHINXOPTS='-nW' html
55-
- make -C doc spelling
56+
- if [[ "$DOCCHECK" = true ]]; then make -C doc SPHINXOPTS='-nW' html; fi
57+
- if [[ "$DOCCHECK" = true ]]; then make -C doc spelling; fi
5658

5759
after_script:
5860
# avoid uploading the code coverage for PHP 7 and HHVM as they cannot generate it (PHPUnit dropped the old HHVM driver

0 commit comments

Comments
 (0)