forked from Behat/WebApiExtension
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
50 lines (42 loc) · 1.4 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: php
sudo: false
# install required system packages, see 'install' below for details
# Travis' containers require this, otherwise use this:
# sudo apt-get install openssl build-essential libev-dev libssl-dev
addons:
apt:
packages:
- openssl
- build-essential
- libev-dev
- libssl-dev
install:
- php -S 127.0.0.1:8080 -t "$TRAVIS_BUILD_DIR/tests/web" > /dev/null 2> "$TRAVIS_BUILD_DIR/server.log" &
- git clone https://github.com/bumptech/stud.git
- (cd stud && make)
- openssl genrsa 1024 > stunnel.key
- openssl req -batch -subj '/CN=127.0.0.1' -new -x509 -nodes -sha1 -days 3650 -key stunnel.key > stunnel.cert
- cat stunnel.cert stunnel.key > stunnel.pem
- ./stud/stud --daemon -f 127.0.0.1,8181 -b 127.0.0.1,8080 stunnel.pem
matrix:
fast_finish: true
allow_failures:
- php: nightly
include:
- php: 5.6
- php: 5.6
env: deps=low
- php: 7.0
- php: hhvm
- php: nightly
- php: nightly
env: deps=low
before_script:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi;'
- composer self-update
- if [[ $deps = low ]]; then composer update --no-interaction --prefer-lowest ; fi
- if [[ !$deps ]]; then composer install --no-interaction ; fi
script:
- vendor/bin/behat -fprogress --strict
after_failure:
- cat server.log