Skip to content

Commit 3003c86

Browse files
committed
Cleanup .travis.yml and cure my OCD =)
1 parent a3a4ee9 commit 3003c86

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

.travis.yml

+7-13
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,21 @@ php:
1313

1414
env:
1515
global:
16-
- TEST_COMMAND="composer test"
16+
- TEST_COMMAND="./vendor/bin/phpunit"
1717

1818
branches:
1919
except:
2020
- /^patch-.*$/
2121

2222
matrix:
2323
fast_finish: true
24-
allow_failures:
25-
- php: nightly
26-
env: COMPOSER_FLAGS="--ignore-platform-reqs"
2724
include:
28-
- php: 7.2
29-
name: Lowest version of dependencies
30-
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
31-
- php: nightly
32-
name: PHP 8.0
33-
env: COMPOSER_FLAGS="--ignore-platform-reqs"
34-
35-
before_install:
36-
- if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
25+
- name: "PHP: 8.0"
26+
php: nightly
27+
28+
- name: "Lowest version of dependencies"
29+
php: 7.2
30+
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="./vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
3731

3832
install:
3933
- composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction

composer.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A fast PHP7 implementation of PSR-7",
44
"license": "MIT",
55
"keywords": ["psr-7", "psr-17"],
6-
"homepage": "http://tnyholm.se",
6+
"homepage": "https://tnyholm.se",
77
"authors": [
88
{
99
"name": "Tobias Nyholm",
@@ -40,10 +40,6 @@
4040
"Tests\\Nyholm\\Psr7\\": "tests/"
4141
}
4242
},
43-
"scripts": {
44-
"test": "vendor/bin/phpunit",
45-
"test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
46-
},
4743
"extra": {
4844
"branch-alias": {
4945
"dev-master": "1.0-dev"

0 commit comments

Comments
 (0)