Skip to content

Commit 8c2f023

Browse files
committed
Merge pull request #1 from AmsterdamPHP/circle-setup
Circle CI and Auto-deploy
2 parents 6cb23bf + de0d7fd commit 8c2f023

File tree

6 files changed

+1586
-265
lines changed

6 files changed

+1586
-265
lines changed

circle.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
machine:
2+
php:
3+
version: 7.0.4
4+
5+
dependencies:
6+
override:
7+
- composer install --dev --no-progress --no-interaction --prefer-dist
8+
9+
post:
10+
- mkdir -p $CIRCLE_TEST_REPORTS/phpunit
11+
12+
test:
13+
override:
14+
- ./vendor/bin/phpunit --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml
15+
16+
deployment:
17+
production:
18+
branch: master
19+
owner: amsterdamphp
20+
commands:
21+
- ./vendor/bin/dep deploy

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111

1212
"autoload": {
1313
"psr-4": {
14-
"AmsterdamPHP\\Console\\": ["src/"]
14+
"AmsterdamPHP\\Console\\": ["src/", "tests/"]
1515
}
1616
},
1717
"require-dev": {
18-
"deployer/deployer": "^3.3"
18+
"deployer/deployer": "^3.3",
19+
"phpunit/phpunit": "^5.3",
20+
"mockery/mockery": "^0.9.5"
1921
}
2022
}

0 commit comments

Comments
 (0)