Skip to content

Instantly share code, notes, and snippets.

@JoaoVagner
Created July 8, 2017 02:35
Show Gist options
  • Save JoaoVagner/e2427eb3747b55a3ff0db4b51ccfa4dd to your computer and use it in GitHub Desktop.
Save JoaoVagner/e2427eb3747b55a3ff0db4b51ccfa4dd to your computer and use it in GitHub Desktop.
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: phpunit/phpunit:5.0.3
pipelines:
default:
- step:
script:
- chmod -R 777 CI/
- FUEL_ENV=production
- cd src;
- php composer.phar install
- FUEL_ENV=production php oil r install
- FUEL_ENV=production php oil test
- mkdir -p ~/.ssh
- cd ../
- cat CI/known_hosts >> ~/.ssh/known_hosts
- chmod 600 CI/deploy.pem
- ssh -i CI/deploy.pem [email protected] "cd /var/www/ && git pull origin master && sudo chown -R www-data:www-data *"
develop:
- step:
script:
- chmod -R 777 CI/
- FUEL_ENV=development
- cd src;
- php composer.phar install
- FUEL_ENV=development php oil r install
- FUEL_ENV=development php oil test
- mkdir -p ~/.ssh
- cd ../
- cat CI/known_hosts >> ~/.ssh/known_hosts
- chmod 600 CI/deploy.pem
- ssh -i CI/deploy.pem [email protected] "cd /var/www-dev/ && git pull origin develop && sudo chown -R www-data:www-data *"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment