Skip to content

Commit

Permalink
Merge pull request #153 from palantirnet/install-drupal-check-circle
Browse files Browse the repository at this point in the history
install drupal-check on circle
  • Loading branch information
becw authored Apr 30, 2020
2 parents 2fcf960 + 7fd214f commit add72bf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
9 changes: 0 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ jobs:
name: Configure URL in /etc/hosts
command: echo 127.0.0.1 ${CIRCLE_PROJECT_REPONAME}.local | sudo tee -a /etc/hosts

# Note: phing and drupal-check have mutually exclusive requirements.
# It'd be better to add drupal-check as a dependency of the drupal project
# rather than as part of the virtual environment, but this will have to do
# for now. Also note, drupal-check is added as part of the-vagrant so it
# is available to run within our VM.
- run:
name: Install drupal-check
command: composer global require mglaman/drupal-check

# Composer package cache
- restore_cache:
keys:
Expand Down
13 changes: 13 additions & 0 deletions defaults/install/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ jobs:
name: Configure URL in /etc/hosts
command: echo 127.0.0.1 ${CIRCLE_PROJECT_REPONAME}.local | sudo tee -a /etc/hosts

# Note: phing and drupal-check have mutually exclusive requirements.
# It'd be better to add drupal-check as a dependency of the drupal project
# rather than as part of the virtual environment, but this will have to do
# for now. Also note, drupal-check is added as part of the-vagrant so it
# is available to run within our VM.
- run:
name: Install drupal-check
command: |
curl -O -L https://github.com/mglaman/drupal-check/releases/download/1.0.9/drupal-check.phar
mkdir --parents ~/bin
mv drupal-check.phar ~/bin/drupal-check
chmod +x ~/bin/drupal-check
# Composer package cache
- restore_cache:
keys:
Expand Down
2 changes: 1 addition & 1 deletion defaults/install/the-build/build.circleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ behat:
args: "--profile=circleci --suite=default --strict --format=junit --out=/tmp/artifacts --tags=~@skipci"

drupal-check:
bin: "/home/circleci/.composer/vendor/bin/drupal-check"
bin: "/home/circleci/bin/drupal-check"

0 comments on commit add72bf

Please sign in to comment.