Created
September 26, 2016 15:32
-
-
Save brandonferens/9f73c11e34f8417dd256665f9951f5aa to your computer and use it in GitHub Desktop.
Codeship Setup for Laravel
This file contains hidden or 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
// | |
// 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