Skip to content

Commit

Permalink
Save the composer cache later in the-build's CI process, as composer …
Browse files Browse the repository at this point in the history
…is used later in the process as well.
  • Loading branch information
becw committed May 18, 2020
1 parent 325db9f commit 2e8e2be
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,6 @@ jobs:
paths:
- ".git"


# Composer package cache - update when the contents of the Composer cache directory
# change
- run: ls -1R ~/.composer/cache/ > /tmp/composer-cache.txt
- save_cache:
key: composer-v1-{{ checksum "/tmp/composer-cache.txt" }}
paths:
- ~/.composer


# Install the-build
- run:
name: Install the-build in the project
Expand All @@ -115,6 +105,15 @@ jobs:
name: Install Drupal
command: printf 'y' | vendor/bin/phing install -Ddrupal.validate_clean_config.bypass=yes

# Composer package cache - update when the contents of the Composer cache directory
# change. This cache is saved after installing Drupal, as the install process uses
# composer to add a few modules.
- run: ls -1R ~/.composer/cache/ > /tmp/composer-cache.txt
- save_cache:
key: composer-v1-{{ checksum "/tmp/composer-cache.txt" }}
paths:
- ~/.composer

# Add a multisite
- run:
name: Add a multisite to the project
Expand Down

0 comments on commit 2e8e2be

Please sign in to comment.