-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLANET-5221 Checkout code for forks, instead of composer
* Need to provide WP_VERSION here as normally it comes from the org-global context, which is not available for forks.
- Loading branch information
Showing
1 changed file
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,8 @@ workflows: | |
jobs: | ||
- php72-tests | ||
- php73-tests | ||
- acceptance-tests: | ||
context: org-global | ||
- a11y-tests: | ||
context: org-global | ||
- acceptance-tests | ||
- a11y-tests | ||
- create-release-zip: | ||
context: org-global | ||
filters: | ||
|
@@ -79,6 +77,7 @@ job-references: | |
auth: &docker_auth | ||
working_directory: /home/circleci/ | ||
environment: | ||
WP_VERSION: 5.4.2 | ||
APP_HOSTNAME: www.planet4.test | ||
APP_HOSTPATH: | ||
CLOUDSQL_INSTANCE: p4-develop-k8s | ||
|
@@ -94,23 +93,31 @@ commands: | |
steps: | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- checkout: | ||
path: /home/circleci/checkout/planet4-master-theme | ||
- run: | ||
name: Build - Configure | ||
command: | | ||
activate-gcloud-account.sh | ||
mkdir -p /tmp/workspace/var | ||
mkdir -p /tmp/workspace/src | ||
echo "${CIRCLE_BUILD_NUM}" > /tmp/workspace/var/circle-build-num | ||
- run: | ||
name: Build - Build containers | ||
working_directory: /home/circleci | ||
command: | | ||
echo "Master theme branch is ${CIRCLE_BRANCH}" | ||
MASTER_THEME_BRANCH=dev-${CIRCLE_BRANCH} \ | ||
if [ -n "$CIRCLE_PR_NUMBER" ]; then | ||
BRANCH=contrib | ||
git --git-dir=/home/circleci/checkout/planet4-master-theme/.git checkout -b contrib | ||
echo "Using tmp branch contrib for fork PR $CIRCLE_PR_NUMBER" | ||
else | ||
BRANCH="${CIRCLE_BRANCH}" | ||
echo "Master theme branch is ${CIRCLE_BRANCH}" | ||
fi | ||
MASTER_THEME_BRANCH=dev-${BRANCH}#${CIRCLE_SHA1} \ | ||
PLUGIN_GUTENBERG_BLOCKS_BRANCH=dev-master \ | ||
[email protected]:greenpeace/planet4-base-fork.git \ | ||
MERGE_REF=develop \ | ||
make | ||
make ci | ||
- run: | ||
name: Test - Clone planet4-docker-compose | ||
command: | | ||
|