forked from neilime/zf2-mobile-detect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 1.26 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
language: php
matrix:
include:
- php: '5.6'
env:
- EXECUTE_AFTER_SCRIPT=true
- php: '7.0'
addons:
apt:
packages:
- graphviz
sudo: false
cache:
directories:
- "$HOME/.composer/cache"
before_install:
- mkdir -p ~/.composer
- cp .travis.composer.json ~/.composer/config.json
- composer self-update
- composer install --prefer-dist --dev
- pear channel-discover pear.phpdoc.org
- pear install phpdoc/phpDocumentor
- phpenv rehash
before_script:
- mkdir -p build/{logs,coverage,phpdoc}
script:
- cd tests
- ../vendor/bin/phpunit -d max_execution_time=0 --coverage-text --coverage-clover ../build/logs/clover.xml
--coverage-html ../build/coverage/
- cd ..
after_script:
- if [[ $EXECUTE_AFTER_SCRIPT == 'true' ]]; then php vendor/bin/coveralls --verbose
--config;fi
- if [[ $EXECUTE_AFTER_SCRIPT == 'true' ]]; then phpdoc -d "./src" -t "./build/phpdoc"
--template="responsive-twig";fi
- if [[ $EXECUTE_AFTER_SCRIPT == 'true' ]]; then bash <(curl -s https://gist.githubusercontent.com/neilime/769d733c52acdecea8d2548fb3aca3ff/raw/travis_ci_php_publish_build.sh);fi
env:
global:
secure: F4d5oDfBC+lRjalp9lN8TTrHX4PmKnvyNhtGvYkboNpRQIfh1oI03hCIo74qiBKjuHZ0bee1wIuYGHLUUj/e1N9L8cLFTW502EhYqP9zLIh/GNh7/fDhmENFFt2VlYyYN3eAmYZzC5Oaqc8hiqqDmI9SUzWrOhhr7K9J0o7wuHU=