Skip to content

Commit

Permalink
Merge pull request #1208 from greenpeace/planet-5221-new
Browse files Browse the repository at this point in the history
PLANET-5221 Checkout code for forks, instead of composer
  • Loading branch information
Inwerpsel authored Oct 23, 2020
2 parents a2212bd + 5a6dbcd commit bffac4c
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit bffac4c

Please sign in to comment.