Skip to content

Instantly share code, notes, and snippets.

@brandonferens
Created September 26, 2016 15:32
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 brandonferens/9f73c11e34f8417dd256665f9951f5aa to your computer and use it in GitHub Desktop.
Save brandonferens/9f73c11e34f8417dd256665f9951f5aa to your computer and use it in GitHub Desktop.
Codeship Setup for Laravel
//
// Setup Commands
//
# Set version of PHP to 7
#
phpenv local 7.0
#
#
# Disable XDebug
#
rm -f /home/rof/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
#
#
# Install dependencies through Composer using Github access token
#
composer config -g github-oauth.github.com $GITHUB_ACCESS_TOKEN
composer install --prefer-dist --no-interaction
#
#
# Install PHPUnit 5.*
#
composer global require phpunit/phpunit=5.*
#
#
# Setup SQLite database
# We are using https://github.com/SRLabs/laravel-testing-utilities. Change this to command or remove depending upon your needs.
#
php artisan utility:testdb
//
// Test Pipeline
//
phpunit
//
// Environment Variables
//
APP_ENV=testing
DB_CONNECTION=testing
COMPOSER_HOME=${HOME}/cache/composer
GITHUB_ACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment