Skip to content

Commit

Permalink
create travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lunika committed Dec 3, 2014
1 parent 631cd37 commit ec2841b
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 10 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: php

php:
- 5.4
- 5.5
- 5.6

before_script:
- composer self-update
- composer install --dev
- sh -c "mysql -uroot -e 'SET FOREIGN_KEY_CHECKS = 0; DROP DATABASE IF EXISTS thelia;SET FOREIGN_KEY_CHECKS = 1;'; fi"
- cd ..
- composer create-project thelia/thelia thelia 2.1.0-alpha2
- cd thelia
- phpenv config-add travis.php.ini
- php Thelia thelia:install --db_host=localhost --db_username=root --db_name=thelia
- php setup/faker.php
- php -S localhost:8000 -t web/ >/dev/null 2>&1 &
- sleep 3
- cd ../thelia-api-client

script: phpunit
20 changes: 13 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
{
"name": "thelia/api-client",
"description": "Guzzle based client for Thelia API",
"license": "GPL-3.0+",
"authors": [
{
"name": "Benjamin Perche",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.4.0",
"guzzle/guzzle": "~3.9"
},
"require-dev": {
"phpunit/phpunit": "~4.3"
},
"authors": [
{
"name": "Benjamin Perche",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"Thelia\\Api\\Client\\" : "src/",
"Thelia\\Api\\Client\\" : "src/"
}
},
"autoload-dev": {
"psr-4": {
"Thelia\\Api\\Client\\Tests\\" : "tests/"
}
},
Expand Down
6 changes: 4 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/server.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
http://thelia.ben
http://localhost:8000

0 comments on commit ec2841b

Please sign in to comment.