Skip to content

Commit d296a77

Browse files
authored
Merge pull request #19 from dof-dss/D8UN-1804
D8UN-1804
2 parents 5929cec + 549b442 commit d296a77

File tree

3 files changed

+37
-35
lines changed

3 files changed

+37
-35
lines changed

.circleci/config.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ default_docker_image: &docker_image
1414
PHP_INI_MAX_INPUT_TIME: 60
1515
custom_npm_docker_image: &custom_npm_docker_image
1616
docker:
17-
- image: circleci/php:8.1-apache-browsers
17+
- image: thecodingmachine/php:8.1-v4-apache-node14
1818
environment:
1919
PLATFORM_REGION: "uk-1.platform.sh"
20-
PROJECT_ROOT: "/home/circleci/project"
20+
PROJECT_ROOT: "/home/docker/project"
21+
PHP_EXTENSIONS: "gd"
2122
# git variables to avoid empty committer identity errors
2223
EMAIL: "circleci@localhost"
2324
GIT_COMMITTER_NAME: "Circle CI"
@@ -67,6 +68,7 @@ commands:
6768
- run:
6869
name: Switch dof-dss packages to HEAD on development branch
6970
command: |
71+
cd project
7072
composer require dof-dss/nicsdru_unity_theme:dev-development \
7173
dof-dss/nicsdru_origins_modules:dev-development \
7274
dof-dss/nicsdru_unity_modules:dev-development
@@ -147,11 +149,9 @@ jobs:
147149
- run:
148150
name: Add OS and PHP extensions
149151
command: |
150-
sudo cp $PROJECT_ROOT/.circleci/docker-php-circleci.ini /usr/local/etc/php/conf.d/
151152
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
152153
sudo apt update --allow-releaseinfo-change
153-
sudo apt install -y libpng-dev
154-
sudo docker-php-ext-install gd pcntl posix
154+
sudo apt install libjpeg-dev make python g++ -y
155155
- install_psh_cli
156156
- run:
157157
name: Switch to edge branch
@@ -167,16 +167,16 @@ jobs:
167167
command: |
168168
# Need to re-build site theme with any Unity changes.
169169
# Download and configure node and npm.
170-
sudo apt install libjpeg-dev automake python -y
171170
git clone https://github.com/nvm-sh/nvm.git
172171
cd nvm
173172
chmod +x install.sh
174173
./install.sh
175174
- run:
176175
name: Rebuild site themes
177176
command: |
178-
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
179-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
177+
export NVM_DIR="$HOME/.nvm"
178+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
179+
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
180180
nvm install v15.14.0
181181
for site in `ls -l ~/project/project/sites | grep ^d | awk '{print $9}'`
182182
do

composer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@
9393
"drupal/date_facet_drilldown": "2.x-dev",
9494
"drupal/diff": "^1.0",
9595
"drupal/draggableviews": "^2.0",
96+
"drupal/embed": "^1.6",
97+
"drupal/entity_browser": "^2.9",
9698
"drupal/entity_embed": "^1.0",
9799
"drupal/entityqueue": "^1.2",
98100
"drupal/eu_cookie_compliance": "^1.8",
@@ -114,7 +116,7 @@
114116
"drupal/link_fix_absolute_urls": "^1.0",
115117
"drupal/linkit": "^6.0.0",
116118
"drupal/media_entity_browser": "^2.0",
117-
"drupal/media_library_edit": "^2.0",
119+
"drupal/media_library_edit": "^3.0",
118120
"drupal/menu_admin_per_menu": "^1.3",
119121
"drupal/menu_breadcrumb": "^1.13",
120122
"drupal/metatag": "1.16.0",

composer.lock

+26-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)