-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
50 lines (40 loc) · 1.19 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: python
sudo: false
python:
- 3.6
env:
global:
- PATH="$HOME/.phpenv/bin:$HOME/.phpenv/shims:$PATH"
matrix:
- PHP_VERSION=7.1 PYGMENTS_VERSION=2.2
- PHP_VERSION=7.0 PYGMENTS_VERSION=2.2
- PHP_VERSION=5.6 PYGMENTS_VERSION=2.2
- PHP_VERSION=5.6 PYGMENTS_VERSION=2.2 COMPOSER_OPTS="--prefer-lowest"
- PHP_VERSION=nightly PYGMENTS_VERSION=2.2
matrix:
fast_finish: true
allow_failures:
- env: PHP_VERSION=nightly PYGMENTS_VERSION=2.2
addons:
apt:
packages:
- libc-client-dev
- libtidy-dev
- libmcrypt-dev
before_install:
- ./tools/install-php.sh
- eval "$(phpenv init -)" && phpenv rehash
- php --version
- php composer.phar --version
install:
- travis_retry pip install Pygments==$PYGMENTS_VERSION
- travis_retry php composer.phar require --no-update satooshi/php-coveralls:^1.0
- travis_retry php composer.phar update --no-interaction --prefer-dist $COMPOSER_OPTS
before_script:
- mkdir -p build/logs
script:
- ./vendor/bin/parallel-lint src tests
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- ./vendor/bin/phpcs src tests --standard=psr2 -sp
after_success:
- travis_retry php vendor/bin/coveralls