Brands
SourcingJournal

PMC-SOURCINGJOURNAL

WordPress theme for Sourcingjournal.com https://pmc.com/contact

APP Details

  • Parent theme pmc-core-v2

Installation

  • git clone this repo
  • ensure your have a valid COMPOSER_AUTH or git auth credentials in your host environment to clone private repos
  • run through build steps listed below

Local Dev Setup

If starting from scratch:

For local development we are currently using VVV (opens in a new tab). Documentation and download instructions are in the repo.

Once VVV is running, add pmc.test site to config/config.yml under the sites: config in the vvv installation.

  pmc:
    repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template
    hosts:
      - pmc.test
    custom:
        wp_type: subdirectory
        wp_version: nightly
        db_name: pmc

After the config is added, run vagrant reload --provision on the root VVV installation to add the new site installation.

After initial VVV custom site installation:

Follow the VIP plugin installation instructions (opens in a new tab) for the VIP Platform.

Install the parent there pmc-core-v2 (opens in a new tab) to wp-content/themes/vip/:

git clone [email protected]:penskemediacorp/pmc-core-v2.git

Install PMC Plugins (opens in a new tab) to wp-content/themes/vip/:

git clone [email protected]:penskemediacorp/pmc-plugins.git

Pipeline and testing

Start up the app first by building the docker image:

docker-compose up --build -d --force-recreate --remove-orphans

Build the dependencies:

docker-compose run --rm build-npm
docker-compose run --rm build-php

Install WordPress:

docker-compose run --rm cli

Run tests:

docker-compose run --rm test-npm
docker-compose run --rm test-npm /bin/sh
docker-compose run --rm test-php
docker-compose run --rm test-php /bin/sh

Run CI:

wget --no-cache -O - https://raw.githubusercontent.com/penske-media-corp/alpine-wordpress/master/_ss/global/_ss-ci.sh | sh

Quality Assurance Testing (QAT)

See our Quality Assurance Testing (opens in a new tab) documentation within Confluence.

Critical files for CI/CD

##Notes If running MacOS (Catalina or greater)

Disable System Integrity Protection (SIP)

This has to be done until Apple refreshes the list of allowed Kernel Extensions to allow VBoxDrv.kext to load properly in Mojave.

Reboot your Mac and hold Command + R (⌘ + R) before it boots. Keep holding it until you see the progress bar Wait for it to finish At the top menu, select Utilities -> Terminal Enter csrutil disable Press Enter Type reboot

Run the installer for Virtual Box (6.0 is the highest supported version compatible with VVV)

You will get an error message like this:

Installer Error

The Installation Failed

The installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

No worries, close it and continue