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: jekyll/_docs/language-php.md
+18-14Lines changed: 18 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,16 @@ categories: [languages]
6
6
description: Continuous Integration and Continuous Deployment with PHP
7
7
---
8
8
9
-
Circle works seamlessly with all the tools and package managersthat
9
+
CircleCI works seamlessly with all the tools and package managers that
10
10
help PHP developers test and deploy their code. We can generally infer
11
11
most of your dependencies and test commands, but we also provide custom
12
-
configuration via a `circle.yml` checked into your repo's root directory.
12
+
configuration via a `circle.yml` file checked into your repo's root directory.
13
+
The examples here referring to PHP filepaths are for the Ubuntu 14.04 and newer
14
+
images. This image is not default but can be choosen in Project Settings ->
15
+
Build Environment. For Ubuntu 12.04, replace `/opt/circleci/php` with
16
+
`~/.phpenv/versions` in the examples.
13
17
14
-
###Version
18
+
## Version
15
19
16
20
We have many versions of PHP pre-installed on [Ubuntu 12.04]({{ site.baseurl }}/build-image-precise/#php) and [Ubuntu 14.04]({{ site.baseurl }}/build-image-trusty/#php) build images.
17
21
@@ -20,13 +24,13 @@ If you don't want to use the default, you can specify your version in `circle.ym
20
24
```
21
25
machine:
22
26
php:
23
-
version: 5.5.11
27
+
version: 7.0.4
24
28
```
25
29
26
30
Please [contact us](mailto:sayhi@circleci.com)
27
31
if you need a different version; we'll be happy to install it for you.
28
32
29
-
###Dependencies
33
+
## Dependencies
30
34
31
35
Circle has the composer, pear, and pecl package managers installed.
32
36
If we find a composer.json file, then we'll automatically run `composer install`.
@@ -47,7 +51,7 @@ You can also edit your PHP configuration from your `circle.yml`. For example, if
Circle always runs your tests on a fresh machine. If we find a `phpunit.xml` file in your repo, then we'll run `phpunit` for you. You can add custom test commands to the test section of your `circle.yml`:
119
123
@@ -126,7 +130,7 @@ test:
126
130
If you want CircleCI to show a test summary of your build see
127
131
[Metadata collection in custom test steps for PHPUnit]({{ site.baseurl }}/test-metadata/#phpunit).
128
132
129
-
<h3id="xdebug">Enable Xdebug</h3>
133
+
## Enable Xdebug {#xdebug}
130
134
131
135
Xdebug is installed for all versions of PHP, but is disabled (for performance reasons) by
132
136
default. It is simple to enable this tool by adding the following to your
@@ -135,17 +139,17 @@ default. It is simple to enable this tool by adding the following to your
135
139
```
136
140
dependencies:
137
141
pre:
138
-
- sed -i 's/^;//' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini
142
+
- sed -i 's/^;//' /opt/circleci/php/$(phpenv global)/etc/conf.d/xdebug.ini
139
143
```
140
144
141
-
###Deployment
145
+
## Deployment
142
146
143
147
Circle offers first-class support for [deployment]({{site.baseurl}}/configuration/#deployment).
144
148
When a build is green, Circle will deploy your project as directed
145
149
in your `circle.yml` file. We can deploy to PaaS providers as well as to
146
150
physical servers under your control.
147
151
148
-
###Troubleshooting for PHP
152
+
## Troubleshooting for PHP
149
153
150
154
If you run into problems, check out our [PHP troubleshooting]({{site.baseurl}}/troubleshooting-php/)
0 commit comments