forked from ubirak/rest-api-behat-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 1018 Bytes
/
.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
language: php
dist: bionic
cache:
directories:
- vendor
php:
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- nightly
env:
matrix:
- COMPOSER_PREFER=""
- COMPOSER_PREFER="--prefer-stable"
- COMPOSER_PREFER="--prefer-lowest --prefer-stable"
matrix:
allow_failures:
-
php: nightly
fast_finish: true
before_script:
- >-
echo 'always_populate_raw_post_data = -1' >> ~/.phpenv/versions/$(phpenv
version-name)/etc/conf.d/travis.ini
- |
if [ ! $(php -m | grep -ci xdebug) -eq 0 ] ; then
phpenv config-rm xdebug.ini
fi
- composer update $COMPOSER_PREFER
- |
# We force latest atoum on php >=7
if [ $(php -r 'echo phpversion();' | sed -e 's/\..*//g') -eq 7 ] ; then
composer update --prefer-stable atoum/atoum
fi
- 'php -S 127.0.0.1:8888 -t "$TRAVIS_BUILD_DIR/www" &> /dev/null &'
script:
- vendor/bin/atoum -ulr
- vendor/bin/behat -f progress