Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Commit

Permalink
Extract Atoum dependencies (#5)
Browse files Browse the repository at this point in the history
* Extract Atoum dependencies

* Update build status badge

* Test only on PHP 7 on Travis for speed.
  • Loading branch information
sanmai authored Oct 7, 2020
1 parent 32986c7 commit 55577fe
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 21 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
- name: Install dependencies
run: |
composer update --prefer-dist --no-interaction --no-progress ${{ matrix.dependencies }}
composer install --prefer-dist --no-interaction --no-progress ${{ matrix.dependencies }}
- name: Execute tests
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/cs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
- name: Install dependencies
run: |
composer install --prefer-dist --no-interaction --no-progress
composer install --prefer-dist --no-interaction --no-progress
- name: Check code style
run: |
Expand Down
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
branches:
only:
- master
- main

language: php
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

jobs:
fast_finish: true
Expand All @@ -17,7 +18,8 @@ cache:
- build/cache

install:
- composer install --prefer-dist
- composer require --prefer-dist --no-interaction --no-progress --dev $(composer config extra.require-atoum | jq -r 'to_entries[] | "\(.key):\(.value)"')
- composer install --prefer-dist --no-interaction --no-progress
- pecl install pcov || true

script:
Expand All @@ -27,3 +29,4 @@ script:

after_success:
- travis_retry php vendor/bin/php-coveralls -v

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/sanmai/hoa-compiler.svg?branch=master)](https://travis-ci.org/sanmai/hoa-compiler)
[![Build Status](https://travis-ci.com/sanmai/hoa-compiler.svg?branch=master)](https://travis-ci.com/sanmai/hoa-compiler)
[![Coverage Status](https://coveralls.io/repos/github/sanmai/hoa-compiler/badge.svg)](https://coveralls.io/github/sanmai/hoa-compiler)
[![Latest Stable Version](https://poser.pugx.org/sanmai/hoa-compiler/v/stable)](https://packagist.org/packages/sanmai/hoa-compiler)

Expand Down
30 changes: 17 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,34 @@
"hoa/compiler": "3.17.08.08"
},
"require-dev": {
"atoum/atoum": "^3",
"atoum/stubs": "*",
"friendsofphp/php-cs-fixer": "^2.15",
"hoa/console": "^3",
"hoa/file": "*",
"hoa/json": "^2",
"hoa/regex": "^1",
"hoa/stream": "^1",
"hoa/test": "^2",
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": ">=6.5.14",
"sanmai/linter": "^0.1.0"
},
"extra": {
"branch-alias": {
"dev-master": "0.1.x-dev"
}
},
"suggest": {
"hoa/regex": "For getAST to work",
"hoa/file": "For getAST to work",
"hoa/regex": "For getAST to work",
"sanmai/hoa-protocol": "If you have trouble with a conflicting resolve()"
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "0.1.x-dev"
},
"require-atoum": {
"atoum/atoum": "^3",
"atoum/stubs": "*",
"hoa/console": "^3",
"hoa/json": "^2",
"hoa/stream": "^1",
"hoa/test": "^2"
}
},
"autoload": {
"psr-4": {
"Hoa\\Compiler\\": "src/"
Expand All @@ -56,6 +58,8 @@
"Hoa\\Compiler\\Test\\": "atoum/",
"Tests\\Hoa\\Compiler\\": "tests/"
},
"files": ["tests/bootstrap.php"]
"files": [
"tests/bootstrap.php"
]
}
}

0 comments on commit 55577fe

Please sign in to comment.