-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.travis.yml
38 lines (29 loc) · 1 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
# vim: set tabstop=2 shiftwidth=2 expandtab:
language: php
php:
- 7.2
env:
- EVENT_STORE_VERSION='Ubuntu-14.04-v4.1.0' EVENT_STORE_DAEMON='eventstored'
sudo: false
cache:
directories:
- $HOME/downloads
- $HOME/composer/.cache
- $HOME/build/dbellettini/php-eventstore-client/vendor
- $HOME/build/dbellettini/php-eventstore-client/bin
before_install:
- travis/download-eventstore.sh ${EVENT_STORE_VERSION}
- travis/download-ocular.sh
- tar xf $HOME/downloads/EventStore-OSS-${EVENT_STORE_VERSION}.tar.gz
- cd EventStore* && ./${EVENT_STORE_DAEMON} --mem-db 2>&1> ~/eventstore.log &
install:
- composer install --prefer-dist --no-interaction
before_script:
- while [ `grep 'IS MASTER' ~/eventstore.log | wc -l` -eq 0 ]; do sleep 1; done
script:
- bin/phpunit --coverage-clover=coverage.clover --coverage-text --testdox
after_success:
- php ~/ocular.phar code-coverage:upload --format=php-clover coverage.clover
after_scripts:
- killall -SIGINT clusternode
- cat ~/eventstore.log