forked from php-pm/php-pm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 loc) · 901 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
41
42
language: php
php:
- 5.6
- 7.0
- 7.1
install:
- rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- composer install
script:
# check with lock file
- ./vendor/bin/phpunit
# check without lock file
- rm composer.lock && rm -rf vendor
- composer install
- ./vendor/bin/phpunit
# integration test
- mkdir web && echo Hello > web/index.html
- bin/ppm start --workers=1 --bridge=StaticBridge --static-directory=web --max-requests=1 -v&
- sleep 5
- bin/ppm status
- curl -v -f http://127.0.0.1:8080
- bin/ppm status
- curl -v -f http://127.0.0.1:8080
- bin/ppm status
- bin/ppm stop
matrix:
fast_finish: true
# cache vendors
cache:
directories:
- $HOME/.composer/cache
# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false