-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (44 loc) · 1.36 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
---
language: php
addons:
apt:
packages:
- elinks # For dysplaying php files on console.
- socat
cache:
directories:
- $HOME/.composer/cache/files
php:
- nightly
- 7.3
- 7.2
- 7.1
- 7.0
matrix:
fast_finish: true
allow_failures:
- php: nightly
- php: 7.4
before_install:
- go get -u github.com/jingweno/ccat
# Disabling Xdebug - Debugger and Profiler Tool for PHP
- |
php -r "print_r(get_loaded_extensions(TRUE));"
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
cat ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
install --directory ~/.phpenv/versions/$(phpenv version-name)/etc/on-demand
mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/.phpenv/versions/$(phpenv version-name)/etc/on-demand
php -r "print_r(get_loaded_extensions(TRUE));"
fi
install:
- composer install
script:
- php -S 127.0.0.1:8000 -t public &>/dev/null & printf 'HEAD / HTTP/1.1\r\n\r\n' | socat - TCP4:localhost:8000,forever >/dev/null # Waiting for server to connect.
- elinks http://localhost:8000/ -dump-color-mode 4 -dump
after_script:
- ls --color
- composer show --latest
- $GOPATH/bin/ccat composer.json
- composer require --no-scripts sensiolabs/security-checker
- composer security:check -- --end-point=http://security.sensiolabs.org/check_lock --ansi
- $GOPATH/bin/ccat composer.json