You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: The `install-drupal` command writes the environment variable to `.cypress_test_content_status` file for use by CI/CD pipelines and host environment scripts.
62
+
56
63
## Installation
57
64
58
65
```bash
@@ -193,6 +200,28 @@ steps:
193
200
ddev dev-lint
194
201
```
195
202
203
+
#### CI/CD Module Detection
204
+
205
+
After running `ddev install-drupal`, the module detection result is saved to `.cypress_test_content_status` file. Source this file in your pipeline scripts:
206
+
207
+
```bash
208
+
# Run Drupal installation which detects the module
209
+
ddev install-drupal
210
+
211
+
# Source the module detection result
212
+
if [ -f .cypress_test_content_status ];then
213
+
source .cypress_test_content_status
214
+
fi
215
+
216
+
# Use the environment variable
217
+
if [ "${CYPRESS_TEST_CONTENT_AVAILABLE}"="true" ];then
218
+
echo"Running Cypress tests with test content"
219
+
ddev cypress-headless
220
+
else
221
+
echo"Skipping Cypress tests - no test content module"
0 commit comments