Skip to content

Commit 5d71ae7

Browse files
committed
switch to circleci
1 parent 8733cdb commit 5d71ae7

File tree

2 files changed

+54
-13
lines changed

2 files changed

+54
-13
lines changed

.circleci/config.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
defaults: &defaults
2+
steps:
3+
# common php steps
4+
- run: echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
5+
- run: echo "date.timezone = UTC" >> $(php --ini |grep Scan |awk '{print $NF}')/timezone.ini
6+
- run: curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
7+
8+
# install apcu
9+
- run: |
10+
docker-php-source extract \
11+
&& apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS \
12+
&& printf "\n" | pecl install apcu \
13+
&& docker-php-ext-enable apcu \
14+
&& apk del .phpize-deps-configure \
15+
&& docker-php-source delete
16+
17+
# checkout
18+
- checkout
19+
20+
# post-checkout steps
21+
22+
# run tests
23+
- run: composer install -n --prefer-dist
24+
- run: php vendor/phpunit/phpunit/phpunit -c phpunit.xml --log-junit /tmp/test-results/phpunit/junit.xml
25+
- store_test_results:
26+
path: /tmp/test-results
27+
28+
version: 2
29+
jobs:
30+
build-php71:
31+
<<: *defaults
32+
docker:
33+
- image: php:7.1-alpine
34+
build-php72:
35+
<<: *defaults
36+
docker:
37+
- image: php:7.2-alpine
38+
build-php73:
39+
<<: *defaults
40+
docker:
41+
- image: php:7.3-alpine
42+
build-phpRC:
43+
<<: *defaults
44+
docker:
45+
- image: php:rc-alpine
46+
47+
workflows:
48+
version: 2
49+
build:
50+
jobs:
51+
- build-php71
52+
- build-php72
53+
- build-php73
54+
- build-phpRC

.travis.yml

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

0 commit comments

Comments
 (0)