Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (51 sloc) 1.55 KB
# Execute the pipeline with the wercker/php box
box: wercker/php
# Install dependencies with composer
- script:
name: install dependencies
code: |-
composer install --no-interaction
# Spin webservice and serve site
- script:
name: Serve application
code: php -S localhost:8000 >> /dev/null &
# Execute integration tests with php unit
- script:
name: PHPUnit integration tests
code: phpunit --configuration phpunit.xml
- add-to-known_hosts:
- script:
name: Setup git repository
code: |-
# Remove existing git repository if exists
if [ -d ".git" ]; then rm -rf .git; fi
# Configure git user
git config --global "wercker"
git config --global
# Initialize new repository and add everything
git init
git add .
git commit -m 'Deploy commit'
# Add fortrabbit remote
git remote add fortrabbit $FORTRABBIT_GIT_REMOTE
- script:
name: Make .SSH directory
code: mkdir -p "$HOME/.ssh"
- create-file:
name: Write SSH key
filename: $HOME/.ssh/id_rsa
overwrite: true
- script:
name: Set permissions for SSH key
code: |-
chmod 0400 $HOME/.ssh/id_rsa
- script:
name: Git push deploy
code: |-
git push fortrabbit master -f