Note: As of April 2023, Kalamuna is moving to deprecate the use of CircleCI in favor of GitHub Actions.

This guide will remain in place in case we need to work with or troubleshoot legacy installs.

Guide to Enabling Circle CI with a WPEngine Project

version: 2
  composer config -g github-oauth.github.com a5c3af2e7715f035ec4715acd60e18650baa3bf7

jobs:
  build-and-deploy-dev:
    docker:
      - image: circleci/php:7.1-node-browsers
    working_directory: ~/repo
    steps:
      - checkout
      - run: npm install
      - run: composer install --prefer-dist --no-dev -o
      - run: npm run build-all
      - run: mkdir wp-content
      - run: cp -R web/app/* wp-content
      - run: rm wp-content/mu-plugins/bedrock-autoloader.php
      - run: rm wp-content/mu-plugins/disallow-indexing.php
      - run: rm wp-content/mu-plugins/register-theme-directory.php
      - run: ssh-keyscan -H devbuildingc.ssh.wpengine.net >> ~/.ssh/known_hosts
      - run: sudo apt install rsync
      - run: rsync -avzr --exclude-from='./.circleci/rsync-exclude-file.txt' --no-perms --no-owner --no-group --delete ./wp-content devbuildingc@devbuildingc.ssh.wpengine.net:/sites/devbuildingc
workflows:
  version: 2
  build_and_deploy_dev:
    jobs:
      - build-and-deploy-dev:
          filters:
            branches:
              only: development

Hot Tips

- run:
          command: composer install
          working_directory: wp-content/themes/understrap-master/