Skip to content

Instantly share code, notes, and snippets.

@jesgs
Last active April 21, 2019 19:31
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 jesgs/38fea614917f5a1b7fc07b892bb722ed to your computer and use it in GitHub Desktop.
Save jesgs/38fea614917f5a1b7fc07b892bb722ed to your computer and use it in GitHub Desktop.
Bare-bones .travis.yml file.
language: php
php:
- 7.1.11
dist: trusty
sudo: false
services:
- mysql
before_install:
- cp .env.travis .env
- mysql -e 'create database testing;'
- openssl aes-256-cbc -K $encrypted_53e2c61fad26_key -iv $encrypted_53e2c61fad26_iv
-in .travis/id_rsa.enc -out .travis/id_rsa -d
- eval "$(ssh-agent -s)"
- cp .travis/id_rsa ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh-add ~/.ssh/id_rsa
install:
- flags="--ansi --prefer-dist --no-interaction --optimize-autoloader --no-suggest
--no-progress"
- composer install $flags
- php artisan key:generate
- php artisan migrate --no-interaction --verbose
- php artisan db:seed --no-interaction --verbose
addons:
ssh_known_hosts:
- psy-dreamer.com:9922
- 72.14.176.51:9922
deploy:
- provider: script
skip_cleanup: true
script: ".travis/deploy.sh"
on:
branch: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment