Skip to content

Commit 2894ca8

Browse files
authored
Merge pull request #205 from akeneo/circleci-project-setup
CircleCI project setup
2 parents df372b6 + 018ddf4 commit 2894ca8

File tree

4 files changed

+73
-29
lines changed

4 files changed

+73
-29
lines changed

.circleci/config.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
version: 2.1
2+
3+
jobs:
4+
build:
5+
docker:
6+
- image: akeneo/php:7.2
7+
steps:
8+
- checkout
9+
- run: composer install
10+
- persist_to_workspace:
11+
root: ~/
12+
paths:
13+
- project
14+
15+
test_php:
16+
docker:
17+
- image: akeneo/php:7.2
18+
steps:
19+
- attach_workspace:
20+
at: ~/
21+
- run: bin/phpunit -c phpunit.xml.dist
22+
- run: bin/phpspec run
23+
24+
test_php_code_style:
25+
docker:
26+
- image: akeneo/php:7.2
27+
steps:
28+
- attach_workspace:
29+
at: ~/
30+
- run: bin/php-cs-fixer fix --diff --dry-run --config=.php_cs.php -vvv
31+
32+
workflow_success:
33+
docker:
34+
- image: akeneo/php:7.2
35+
steps:
36+
- run:
37+
name: Success
38+
command: echo "The build has run with success! Let's merge :)"
39+
40+
workflows:
41+
pull_request:
42+
jobs:
43+
- wait_for_user_approval:
44+
type: approval
45+
filters:
46+
branches:
47+
ignore:
48+
- master
49+
- build:
50+
requires:
51+
- wait_for_user_approval
52+
- test_php:
53+
requires:
54+
- build
55+
- test_php_code_style:
56+
requires:
57+
- build
58+
- workflow_success:
59+
requires:
60+
- test_php
61+
- test_php_code_style
62+
63+
nightly:
64+
when:
65+
and:
66+
- equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
67+
- equal: [ "nightly_master", << pipeline.schedule.name >> ]
68+
jobs:
69+
- build
70+
- test_php:
71+
requires:
72+
- build

.travis.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Matrix compatibility:
1010
| v2.1 - v2.2 | v2.0 | March 2019 | [![Build Status](https://travis-ci.org/akeneo/api-php-client.svg?branch=2.0)](https://travis-ci.org/akeneo/api-php-client) |
1111
| v2.3 | v3.0 | December 2019 | [![Build Status](https://travis-ci.org/akeneo/api-php-client.svg?branch=3.0)](https://travis-ci.org/akeneo/api-php-client) |
1212
| v3.0 | v4.0 | August 2020 | [![Build Status](https://travis-ci.org/akeneo/api-php-client.svg?branch=4.0)](https://travis-ci.org/akeneo/api-php-client) |
13-
| - | master | - | [![Build Status](https://travis-ci.org/akeneo/api-php-client.svg?branch=master)](https://travis-ci.org/akeneo/api-php-client)|
13+
| - | master | - | [![CircleCI](https://circleci.com/gh/akeneo/api-php-client/tree/master.svg?style=svg)](https://circleci.com/gh/akeneo/api-php-client/tree/master)|
1414

1515
Note that our PHP client is backward compatible.
1616
For example, if your PIM is currently a v2.3, you can still use a 1.0 version of the PHP client. The new endpoints available in v2.3 will not be available in the v1.0 of the PHP client.

travis.php.ini

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)