Last active
April 21, 2019 19:31
-
-
Save jesgs/38fea614917f5a1b7fc07b892bb722ed to your computer and use it in GitHub Desktop.
Bare-bones .travis.yml file.
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
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