Skip to content

Commit 39711ae

Browse files
authored
Merge pull request #4 from pmclain/composer-requirements
Fix composer requirements, add test case
2 parents cf58ffc + a4f653a commit 39711ae

File tree

8 files changed

+158
-446
lines changed

8 files changed

+158
-446
lines changed

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
sudo: required
2+
dist: trusty
3+
group: edge
4+
language: php
5+
env:
6+
global:
7+
- COMPOSER_BIN_DIR=~/bin
8+
matrix:
9+
include:
10+
- php: 7.0
11+
env: MAGENTO_VERSION=~2.0.0
12+
- php: 7.0
13+
env: MAGENTO_VERSION=~2.1.0
14+
- php: 7.0
15+
env: MAGENTO_VERSION=~2.2.0
16+
- php: 7.1
17+
env: MAGENTO_VERSION=~2.2.0
18+
cache:
19+
apt: true
20+
directories:
21+
- "$HOME/.composer/cache"
22+
script:
23+
- composer config http-basic.repo.magento.com $MAGENTO_PUBLIC $MAGENTO_PRIVATE --global
24+
- composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition:$MAGENTO_VERSION magento
25+
- cd magento
26+
- composer config repositories.travis_to_test git https://github.com/$TRAVIS_REPO_SLUG.git
27+
- composer config minimum-stability dev
28+
- composer require jamescowie/composer-patcher dev-$TRAVIS_BRANCH#$TRAVIS_COMMIT

composer.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,26 @@
22
"name": "jamescowie/composer-patcher",
33
"description": "Apply patches using composer",
44
"license": "MIT",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"authors": [
77
{
88
"name": "jamescowie",
99
"email": "[email protected]"
1010
}
1111
],
1212
"require": {
13-
"symfony/console": "~2.6.0||~2.8.0",
14-
"symfony/finder": "~2.5.0||~2.7.0||~3.0.0",
15-
"symfony/process": "*"
13+
"symfony/console": "~2.3, !=2.7.0||~3.0||~4.0",
14+
"symfony/finder": "~2.3||~3.0||~4.0",
15+
"symfony/process": "*",
16+
"composer/composer": "~1.0"
17+
},
18+
"require-dev": {
19+
"phpunit/phpunit": "~6.5.0"
1620
},
1721
"autoload": {
1822
"psr-0": {
19-
"Inviqa\\": "src/"
23+
"Inviqa\\": "src/",
24+
"Inviqa\\Test\\": "test/"
2025
}
2126
}
2227
}

0 commit comments

Comments
 (0)