Comments (5)
Hi @safetypins! Yes, it is supported although I personally have not put work into it but I have reviewed and merged pull requests.
Regarding your issues, what CI tool are you using? Did you run the script to set up the scaffolding? Can you provide more details on the above issues?
from drupal9ci.
Hi @juampynr! Thanks for responding. I'm using CircleCI, and I know next to nothing about how to use it. My end goal is to run Behat and Visual Regression testing on Circle and/or platform.sh. I am familiar with setting up a LAMP VPS, but really only by following instructions. I don't understand how Docker images work with CircleCI enough to try to build my own, so I've been searching for CircleCI configurations that other people have shared and. I have yet to find one that completes it's build process without errors, let alone run tests.
The steps that led me to those errors were:
- Download and execute the setup script (https://github.com/Lullabot/drupal8ci/blob/master/setup-circleci.sh) in the Drupal project I would like to test.
- Try to make the path customizations necessary (we are using /docroot instead of /web inside the composer setup).
- Commit and push to GitHub, and watch the CircleCI build fail.
I also forked your d8cidemo repository and tried to run that in my CircleCI account without any changes, and ran into some errors that I don't remember now (I stopped following the repository in CircleCI and then I deleted my fork). I don't know what script to setup scaffolding you mean, so I'm gonna guess that I didn't run it. I thought that there wasn't anything else I needed to do besides run the setup script and customize paths. Here is more context from the CircleCI results:
AH00112: Warning: DocumentRoot [/var/www/html] does not exist
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.240.3. Set the 'ServerName' directive globally to suppress this message
AH00112: Warning: DocumentRoot [/var/www/html] does not exist
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.240.3. Set the 'ServerName' directive globally to suppress this message
[Wed Dec 16 13:02:28.585862 2020] [mpm_prefork:notice] [pid 423] AH00163: Apache/2.4.38 (Debian) PHP/7.4.10 configured -- resuming normal operations
[Wed Dec 16 13:02:28.585913 2020] [core:notice] [pid 423] AH00094: Command line: 'apache2 -D FOREGROUND'
There are no commands defined in the "install" namespace.
➜
➜ Requested RoboFile `/opt/drupal/RoboFile.php` is invalid, please provide valid absolute path to load Robofile.
➜
➜
➜ Robo is not initialized here. Please run `robo init` to create a new RoboFile.
➜
[Wed Dec 16 13:02:28.631601 2020] [mpm_prefork:notice] [pid 423] AH00173: SIGHUP received. Attempting to restart
AH00112: Warning: DocumentRoot [/var/www/html] does not exist
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.240.3. Set the 'ServerName' directive globally to suppress this message
[Wed Dec 16 13:02:28.653932 2020] [mpm_prefork:notice] [pid 423] AH00163: Apache/2.4.38 (Debian) PHP/7.4.10 configured -- resuming normal operations
[Wed Dec 16 13:02:28.653963 2020] [core:notice] [pid 423] AH00094: Command line: 'apache2 -D FOREGROUND'
Exited with code exit status 1
CircleCI received exit code 1
from drupal9ci.
@safetypins I would start by using the "Restart job with SSH" access at CircleCI. That would allow you to jump into the environment and run commands to debug what's missing. In order to accomplish this, take the last job that failed and look for the restart button at the top right corner of the screen. Then wait for the job to run again and fail: only that this time you will find instructions at the end of the job log to jump into the environment via SSH.
By looking at the errors that you posted above, it seems that Apache is pointing to /var/www/html as the docroot but your project is somewhere else. If you manage to jump into the environment I think that you will be able to figure it out.
from drupal9ci.
I've fixed the issue I ran into above, but I've run into two other issues:
error computing cache key: template: cacheKey:1:11: executing "cacheKey" at <checksum "package.json">: error calling checksum: open /home/circleci/project/package.json: no such file or directory
and:
touch: cannot touch 'storage/testing.sqlite': No such file or directory
I think this means that the storage
directory doesn't exist. But maybe I don't need to fix this error, as I think I'm going to run the tests against the platform environments. Do you know why the storage
directory wouldn't exist? Do I need to mkdir
?
I also saw a couple sections in my config.yml that look like:
- restore_cache: keys: - node-v1-{{ checksum "package.json" }} - node-v1-
This looks like there was an error in the setup script that resulted in an empty keys line being added. I removed these, even though they didn't appear to be causing an error. I removed them, but I'm still getting errors saving and restoring cache.
from drupal9ci.
@safetypins can you create a new issue with your current circle ci config and as much detail as you can of the errors that you are finding? That would help us to understand what is going on.
from drupal9ci.
Related Issues (20)
- Annotations for code-standards HOT 2
- Changes to upstream image causes CircleCI to break HOT 1
- Run Travis CI in a Drupal Docker project HOT 3
- Clarify instructions in scripts/databases HOT 8
- Cannot touch 'storage/testing.sqlite': No such file or directory HOT 1
- Errors saving and restoring cache HOT 8
- Drupal Test Traits configured for Github Actions config, but not other CI configs HOT 9
- Drupal 9 compatibility HOT 4
- Replace Behat tests by Cypress.io ones HOT 4
- Create Composer 2 version for both Dockerfile and Dockerfile9 HOT 6
- "Failed to connect to localhost port 80: Connection refused" HOT 1
- DocumentRoot directory doesn't exist HOT 12
- jq not available by default in drupal8ci:latest image
- Include intl extension for PHP
- Update underlying docker image or use third party one HOT 8
- Interactive command line interface HOT 2
- Remove CircleCI test
- Config validation in CI
- Rename project and references from drupal9ci to drupalci HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupal9ci.