forked from ausi/slug-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (51 loc) · 1.37 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
51
52
53
54
55
56
57
58
59
60
61
62
63
language: php
git:
depth: 1
cache:
directories:
- $HOME/.composer/cache
- $HOME/php-fromsource
sudo: false
env:
global:
- COMPOSER_ALLOW_XDEBUG=0
jobs:
include:
- php: 7.1
env: COVERAGE='--coverage-clover build/logs/clover.xml'
- php: 7.2
# Ignore the platform requirements for the upcoming PHP version
- php: nightly
env: COMPOSER_FLAGS='--ignore-platform-reqs'
# Test lowest ICU version
- php: 7.2
addons:
apt:
packages:
- autoconf
- build-essential
- curl
- libtool
- libssl-dev
- libcurl4-openssl-dev
- libxml2-dev
- libreadline-dev
- nginx
- openssl
- pkg-config
install:
- .travis/install-icu.sh
- export PATH="$HOME/php-fromsource/build/bin/:$PATH"
- composer update $COMPOSER_FLAGS --no-interaction --no-suggest
allow_failures:
- php: nightly
before_install:
- if [[ ! $COVERAGE ]]; then phpenv config-rm xdebug.ini || true; fi
install:
- composer update $COMPOSER_FLAGS --no-interaction --no-suggest
script:
- if [[ $COVERAGE ]]; then mkdir -p build/logs; fi
- php -r '(new ReflectionExtension("intl"))->info();'
- php vendor/bin/phpunit $COVERAGE
after_script:
- if [[ $COVERAGE ]]; then php vendor/bin/php-coveralls; fi