-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (39 loc) · 1.06 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
sudo: required
dist: trusty
php:
- 7.2
- master
- nightly
matrix:
fast_finish: true
allow_failures:
- php: master
- php: nightly
os:
- windows
- linux
before_script:
- git clone -b stable https://github.com/SeasX/SeasLog.git
- cd seaslog && sudo ./configure && sudo make check && sudo make install && cd ..
install:
- pecl channel-update pecl.php.net
- pecl install seaslog
- travis_retry composer install --no-interaction
- wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar
- chmod +x php-coveralls.phar
- php php-coveralls.phar --version
script:
- ./vendor/bin/phpcs --standard=psr2 src/
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- ./vendor/bin/psalm
after_success:
- travis_retry php php-coveralls.phar -v
before_script:
- phpenv config-add php-alter.ini
- mkdir -p build/logs
- ls -al
cache:
directories:
- vendor
- $HOME/.cache/composer