Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

Commit eb3c731

Browse files
authored
Migrate to Circleci (DataDog#109)
Migrate to Circleci and delete travis config
1 parent 09ffb17 commit eb3c731

File tree

2 files changed

+46
-24
lines changed

2 files changed

+46
-24
lines changed

.circleci/config.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
version: 2 # use CircleCI 2.0
2+
3+
x-dockerbuild-7: &dockerbuild-7
4+
steps:
5+
- checkout
6+
- run: sudo docker-php-ext-install sockets
7+
- run: find . -name '*.php' -exec php -l {} 1>/dev/null \; 2>/tmp/lint.err ; test ! -s /tmp/lint.err
8+
- run: composer install --prefer-dist
9+
- run: phpdbg -qrr vendor/bin/phpunit --coverage-text
10+
- run: composer lint
11+
12+
x-dockerbuild-5: &dockerbuild-5
13+
steps:
14+
- checkout
15+
- run: sudo docker-php-ext-install sockets
16+
- run: find . -name '*.php' -exec php -l {} 1>/dev/null \; 2>/tmp/lint.err ; test ! -s /tmp/lint.err
17+
- run: composer install --prefer-dist
18+
- run: vendor/bin/phpunit --coverage-text
19+
- run: composer lint
20+
21+
jobs:
22+
test-7.2:
23+
<<: *dockerbuild-7
24+
docker:
25+
- image: circleci/php:7.2-node-browsers
26+
test-7.1:
27+
<<: *dockerbuild-7
28+
docker:
29+
- image: circleci/php:7.1-node-browsers
30+
test-7.0:
31+
<<: *dockerbuild-7
32+
docker:
33+
- image: circleci/php:7.0-node-browsers
34+
test-5.6:
35+
<<: *dockerbuild-5
36+
docker:
37+
- image: circleci/php:5.6-node-browsers
38+
39+
workflows:
40+
version: 2
41+
check_compile:
42+
jobs:
43+
- test-7.2
44+
- test-7.1
45+
- test-7.0
46+
- test-5.6

.travis.yml

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

0 commit comments

Comments
 (0)