forked from PHP-on-Couch/PHP-on-Couch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (37 loc) · 1.02 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
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm
- nightly
services:
- docker
install:
- composer self-update
- composer install --prefer-source --no-interaction --dev
- composer dump-autoload
sudo:
required
before_install:
- docker run -d -it -p 5984:5984 couchdb:latest
- sleep 5
- curl -X PUT http://127.0.0.1:5984/_users && curl -X PUT http://127.0.0.1:5984/_replicator && curl -X PUT http://127.0.0.1:5984/_global_changes
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script:
- curl http://localhost:5984
- php ./tests/_config/_setupEnvironment.php "nonode@nohost"
- vendor/bin/phpunit --coverage-clover=coverage.xml --configuration ./phpunit.xml --testsuite Ordered
- php vendor/phpcheckstyle/phpcheckstyle/run.php --src src --config ./php-on-couch-style.xml
env:
- HTTP_ADAPTER=curl
after_success:
- bash <(curl -s https://codecov.io/bash)
matrix:
allow_failures:
- php: hhvm
- php: nightly
fast_finish: true