Skip to content

Commit f158d5d

Browse files
committed
Travis: external build scripts
1 parent e4fe7f4 commit f158d5d

File tree

3 files changed

+25
-1227
lines changed

3 files changed

+25
-1227
lines changed

.travis.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,25 @@ language: php
22

33
sudo: false
44

5-
cache:
6-
directory:
7-
- $HOME/.composer/cache
5+
matrix:
6+
fast_finish: true
7+
include:
8+
- php: 7.0
9+
env: CS_CHECK=1
10+
- php: 7.1
11+
env: CODE_COVERAGE=1
12+
- php: 7.2
13+
env: COMPOSER_FLAGS="--ignore-platform-reqs"
14+
- php: nightly
15+
env: COMPOSER_FLAGS="--ignore-platform-reqs"
816

9-
php:
10-
- 7.0
11-
- 7.1
17+
cache:
18+
directories:
19+
- $HOME/.composer
1220

13-
install:
14-
- composer install --prefer-dist
21+
install: wget -qO - https://github.com/Slamdunk/travis-scripts/raw/master/php-install.sh | sh
1522

16-
script:
17-
- phpunit --coverage-text
18-
- vendor/bin/php-cs-fixer --diff --dry-run --verbose fix
23+
script: wget -qO - https://github.com/Slamdunk/travis-scripts/raw/master/php-script.sh | sh
1924

2025
notifications:
2126
email: false

composer.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
"role": "Developer"
1111
}
1212
],
13+
"require": {
14+
"php": "^7.0"
15+
},
16+
"require-dev": {
17+
"phpunit/phpunit": "^6.2",
18+
"roave/security-advisories": "dev-master",
19+
"slam/php-cs-fixer-extensions": "^1.4",
20+
"slam/php-debug-r": "^1.1"
21+
},
1322
"autoload": {
1423
"psr-4": {
1524
"Slam\\ErrorHandler\\": "lib/"
@@ -19,12 +28,5 @@
1928
"psr-4": {
2029
"SlamTest\\ErrorHandler\\": "tests/"
2130
}
22-
},
23-
"require": {
24-
"php": "^7.0"
25-
},
26-
"require-dev": {
27-
"slam/php-cs-fixer-extensions": "^1.0",
28-
"slam/php-debug-r": "^1.0.2"
2931
}
3032
}

0 commit comments

Comments
 (0)