Skip to content

Instantly share code, notes, and snippets.

View iolson's full-sized avatar

Ian Olson iolson

  • Grubhub
  • Chicago, IL
View GitHub Profile
# Before Script
before_script:
- composer self-update
- composer install --prefer-dist > /dev/null
- cp .env.example .env
- php artisan key:generate
- php artisan migrate:refresh
# Services
services:
@iolson
iolson / .env.example
Created September 17, 2015 22:14
GitLab CI Laravel 5.1.*
DB_HOST=mysql
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
@iolson
iolson / .gitlab-ci.yml
Created September 22, 2015 22:52
GitLab CI Runner
# Before Script
before_script:
- composer self-update
- composer install --prefer-dist > /dev/null
- cp .env.example .env
- php artisan key:generate
- php artisan migrate:refresh --seed
# Services
services:
# Quicker navigation
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."
alias .......="cd ../../../../../.."
# Aliases
alias ll='ls -l'
@iolson
iolson / .gitlab-ci.yml
Last active April 29, 2017 18:06
GitLab CI
# Before Tests
before_script:
- bash ci/docker_install.sh > /dev/null
- composer self-update
- composer install --prefer-dist > /dev/null
- cp .env.gitlab .env
- php artisan key:generate
- php artisan migrate:refresh
# Services
# Using cURL
curl -sSL https://get.docker.com/ | sh
# Using Ubuntu
sudo apt-get install docker.io
# For Debian/Ubuntu
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash
# For CentOS
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash
# For Debian/Ubuntu
apt-get install gitlab-ci-multi-runner
# For CentOS
yum install gitlab-ci-multi-runner
@iolson
iolson / Blockchain
Last active January 8, 2016 15:16
Verifying that +ianolson is my blockchain ID. https://onename.com/ianolson
Verifying that +ianolson is my blockchain ID. https://onename.com/ianolson