Last active
September 28, 2015 21:19
-
-
Save fbidu/456018d4815219982aa2 to your computer and use it in GitHub Desktop.
Using Codeception inside Travis CI
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
language: php | |
php: | |
- 5.5 | |
- hhvm | |
cache: | |
directories: | |
- vendor | |
- $HOME/.composer/cache | |
install: | |
- composer self-update | |
- composer install | |
before_script: | |
- mysql -e "CREATE DATABASE yourApp;" -uroot | |
- php artisan key:generate | |
- php artisan migrate | |
script: php vendor/codeception/codeception/codecept run |
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
{ | |
"name": "Your app", | |
"description": "A very nice app :D", | |
"license": "MIT", | |
"type": "project", | |
"require": { | |
"php": ">=5.5.9", | |
"laravel/framework": "5.1.*", | |
"league/fractal": "^0.12.0" | |
}, | |
"require-dev": { | |
"fzaninotto/faker": "~1.4", | |
"mockery/mockery": "0.9.*", | |
"laracasts/generators": "^1.1", | |
"guzzlehttp/guzzle": "^6.0", | |
"barryvdh/laravel-ide-helper": "*", | |
"codeception/codeception": "^2.1" | |
}, | |
"autoload": { | |
"classmap": [ | |
"database" | |
], | |
"psr-4": { | |
"App\\": "app/" | |
} | |
}, | |
"autoload-dev": { | |
"classmap": [ | |
] | |
}, | |
"scripts": { | |
"post-install-cmd": [ | |
"php artisan clear-compiled", | |
"php artisan optimize" | |
], | |
"pre-update-cmd": [ | |
"php artisan clear-compiled", | |
"php artisan ide-helper:generate", | |
"php artisan optimize" | |
], | |
"post-root-package-install": [ | |
"php -r \"copy('.env.example', '.env');\"" | |
], | |
"post-create-project-cmd": [ | |
"php artisan key:generate" | |
] | |
}, | |
"config": { | |
"preferred-install": "dist" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment