forked from ongr-io/ElasticsearchBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (41 loc) · 1.65 KB
/
.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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
env:
- ELASTICSEARCH="1.3.9"
- ELASTICSEARCH="1.4.5"
- ELASTICSEARCH="1.5.2"
matrix:
allow_failures:
- php: hhvm
- php: 7.0
before_install:
- curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${ELASTICSEARCH}.deb
- sudo dpkg -i elasticsearch-${ELASTICSEARCH}.deb
install:
- "echo 'script.disable_dynamic: false' | sudo tee -a /etc/elasticsearch/elasticsearch.yml"
- "echo 'index.warmer.enabled: true' | sudo tee -a /etc/elasticsearch/elasticsearch.yml"
- sudo service elasticsearch restart
- sudo pip install -q sphinx
- wget -q -O conf.py https://raw.githubusercontent.com/ongr-io/docs-aggregator/master/source/conf-travis.py
before_script:
- if [[ $TRAVIS_PHP_VERSION = 5.6 && $ELASTICSEARCH = 1.4.4 ]]; then COVERAGE_NEEDED=true; else COVERAGE_NEEDED=false; fi
- if [[ $COVERAGE_NEEDED = false ]]; then phpenv config-rm xdebug.ini || true; fi
- composer install --no-interaction
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/,Test/ElasticsearchTestCase.php ./
- sphinx-build -nWq -b html -c . Resources/doc _build/html
after_script:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && wget --post-data="" -q -O /dev/null http://readthedocs.org/build/ongr'
- >
if [[ $COVERAGE_NEEDED = true ]]; then
wget https://scrutinizer-ci.com/ocular.phar;
php ocular.phar code-coverage:upload --format=php-clover coverage.clover;
fi
notifications:
slack: ongr:oyJ6inOcsttTBsnkuHV6dWbT