-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
23 lines (23 loc) · 916 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sudo: false
language: php
php:
- 5.4
- 5.5
- 5.6
services:
- elasticsearch
install:
- pip install --upgrade pip --user `whoami`
- pip install -q sphinx --use-mirrors --user `whoami`
- wget -q -O conf.py https://raw.githubusercontent.com/ongr-io/docs-aggregator/master/source/conf-travis.py
- mkdir _static
before_script:
- composer install
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
- vendor/bin/phpcs -p --standard=$TRAVIS_BUILD_DIR/vendor/ongr/ongr-strict-standard/Ongr --ignore=vendor/,Tests/app/,EventListener/BaseEventListener.php ./
- sphinx-build -nWq -b html -c . Resources/doc _build/html
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && wget --post-data="" -q -O /dev/null http://readthedocs.org/build/ongr'