Skip to content

Commit

Permalink
switch to circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Apr 2, 2019
1 parent 8733cdb commit 5d71ae7
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 13 deletions.
54 changes: 54 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
defaults: &defaults
steps:
# common php steps
- run: echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
- run: echo "date.timezone = UTC" >> $(php --ini |grep Scan |awk '{print $NF}')/timezone.ini
- run: curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer

# install apcu
- run: |
docker-php-source extract \
&& apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS \
&& printf "\n" | pecl install apcu \
&& docker-php-ext-enable apcu \
&& apk del .phpize-deps-configure \
&& docker-php-source delete
# checkout
- checkout

# post-checkout steps

# run tests
- run: composer install -n --prefer-dist
- run: php vendor/phpunit/phpunit/phpunit -c phpunit.xml --log-junit /tmp/test-results/phpunit/junit.xml
- store_test_results:
path: /tmp/test-results

version: 2
jobs:
build-php71:
<<: *defaults
docker:
- image: php:7.1-alpine
build-php72:
<<: *defaults
docker:
- image: php:7.2-alpine
build-php73:
<<: *defaults
docker:
- image: php:7.3-alpine
build-phpRC:
<<: *defaults
docker:
- image: php:rc-alpine

workflows:
version: 2
build:
jobs:
- build-php71
- build-php72
- build-php73
- build-phpRC
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

0 comments on commit 5d71ae7

Please sign in to comment.