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
Copy file name to clipboardExpand all lines: README.md
+54Lines changed: 54 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,28 @@ Since Panthère implements the API of popular, it already has an extensive docum
138
138
* For the `Crawler` class, read [the DomCrawler's documentation](https://symfony.com/doc/current/components/dom_crawler.html)
139
139
* For Webdriver, read [the Facebook's PHP WebDriver documentation](https://github.com/facebook/php-webdriver)
140
140
141
+
## Environment Variables
142
+
143
+
The following environment variables can be set to change some Panthère behaviors:
144
+
145
+
*`PANTHERE_NO_HEADLESS`: to disable browsers's headless mode (will display the testing window, useful to debug)
146
+
*`PANTHERE_NO_SANDBOX`: to disable [Chrome's sandboxing](https://chromium.googlesource.com/chromium/src/+/b4730a0c2773d8f6728946013eb812c6d3975bec/docs/design/sandbox.md) (unsafe, but allows to use Panthère in containers)
147
+
*`PANTHERE_WEB_SERVER_DIR`: to change the project's document root (default to `public/`)
148
+
149
+
## Docker Integration
150
+
151
+
Here is a minimal Docker image that can run Panthère:
152
+
153
+
```
154
+
FROM php:latest
155
+
156
+
RUN apt-get update && apt-get install -y zlib1g-dev chromium && docker-php-ext-install zip
157
+
ENV PANTHERE_NO_SANDBOX 1
158
+
```
159
+
160
+
Build it with `docker build . -t myproject`
161
+
Run it with `docker run -it -v "$PWD":/srv/myproject -w /srv/myproject myproject bin/phpunit`
162
+
141
163
## Travis CI Integration
142
164
143
165
Panthère will work out of the box with Travis if you add the Chrome addon. Here is a minimal `.travis.yml` file to run
@@ -154,6 +176,38 @@ php:
154
176
script:
155
177
- phpunit
156
178
```
179
+
## AppVeyor Integration
180
+
181
+
Panthère will work out of the box with AppVeyor as long as Google Chrome is installed. Here is a minimal `appveyor.yml`
0 commit comments