Builds your theme, installs composer dependencies and deploys it to production / staging.
Create .circleci
folder in project root, and add config.yml
in it. Edit the config a bit. Use search & replace to substitute $PROD_SSH_PORT
to the SSH port number and $THEMENAME
to the folder name of your theme.
Login to CircleCI and add a project using the menu in the sidebar. Click "Set Up Project" on the project you want to setup CI for.
Commit and push the config, and then click "Start building". Navigate to project settings. Hint: https://circleci.com/gh/$YOUR_GITHUB_USERNAME/$YOUR_REPO_NAME/edit#env-vars
Add the following environment variables:
SSHPASS=password1
TARGET=yoursite.com-p.seravo.com
USER=yoursite
Replace the values with actual credentials. The password will not be visible at any point after saving. After doing this, any subsequent pushes to master will build and deploy the site to production.
Only one theme. If you have multiple, you have to edit the config a bit. Same goes for any plugins you might have developed. There are no tests, but if you have some, you can easily run them in the Install WordPress
section.