-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" | ||
} | ||
}, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
http://thelia.ben | ||
http://localhost:8000 |