Skip to content

Commit 54760a1

Browse files
authored
Merge pull request #53 from ashnazg/ci
CI updates
2 parents 4f2d9c5 + d9b62e1 commit 54760a1

21 files changed

+273
-1130
lines changed

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ bin/phpcs*
1212
bin/phpunit*
1313
bin/jsonlint*
1414
bin/validate-json*
15+
temp/ecs/*
1516

1617
# Build folder and vendor folder are generated code; no need to version this
17-
build/*
18-
vendor/*
19-
composer.phar
18+
build/
19+
tools/
20+
vendor/
21+
*.phar
2022

2123
# By default the phpunit.xml.dist is provided; you can override this using a local config file
2224
phpunit.xml

.travis.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
language: php
2-
php:
3-
- 7.1
4-
- 7.2
5-
- nightly
2+
php: [ 7.1, 7.2, nightly ]
63
sudo: false
74

85
env:
@@ -13,33 +10,34 @@ matrix:
1310
- php: nightly
1411

1512
install:
16-
- composer install --no-interaction --prefer-dist --optimize-autoloader
13+
- travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
14+
- travis_retry wget https://phar.io/releases/phive.phar
15+
16+
script:
17+
- ./vendor/bin/phpunit --no-coverage
1718

1819
jobs:
1920
include:
20-
- stage: test
21-
script:
22-
- vendor/bin/phpunit --no-coverage
23-
2421
- stage: coverage
2522
php: 7.1
2623
script:
27-
- vendor/bin/phpunit
24+
- ./vendor/bin/phpunit
2825
after_script:
29-
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
30-
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && php coveralls.phar --verbose
26+
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
27+
- travis_retry wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
3128

3229
- stage: lint
3330
php: 7.1
3431
before_script:
35-
- composer create-project symplify/easy-coding-standard temp/ecs
32+
- travis_retry php phive.phar --no-progress install --trust-gpg-keys 8E730BA25823D8B5 phpstan
3633
script:
37-
- temp/ecs/bin/ecs check src tests
38-
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon
34+
- ./tools/phpstan analyse src --level max --configuration phpstan.neon
35+
- composer create-project symplify/easy-coding-standard temp/ecs && temp/ecs/bin/ecs check src tests
3936

4037
cache:
4138
directories:
4239
- $HOME/.composer/cache/files
40+
- $HOME/.phive
4341

4442
notifications:
4543
irc: "irc.freenode.org#phpdocumentor"

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ install:
5151

5252
test_script:
5353
- cd c:\typeresolver
54-
- vendor/bin/phpunit --no-coverage
54+
- vendor\bin\phpunit --no-coverage

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
"phpdocumentor/reflection-common": "^1.0"
1414
},
1515
"require-dev": {
16-
"phpunit/phpunit": "^6.5",
1716
"mockery/mockery": "^1.0",
18-
"phpstan/phpstan": "^0.9.0"
17+
"phpunit/phpunit": "^6.5"
1918
},
2019
"autoload": {
2120
"psr-4": {

0 commit comments

Comments
 (0)