Skip to content

Instantly share code, notes, and snippets.

@fbidu
Last active September 28, 2015 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbidu/456018d4815219982aa2 to your computer and use it in GitHub Desktop.
Save fbidu/456018d4815219982aa2 to your computer and use it in GitHub Desktop.
Using Codeception inside Travis CI
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
{
"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