From 5d71ae7586c2fb9553f314b7c33053db0ba427c7 Mon Sep 17 00:00:00 2001 From: Tom Kay Date: Tue, 2 Apr 2019 18:37:44 +0100 Subject: [PATCH] switch to circleci --- .circleci/config.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 13 ----------- 2 files changed, 54 insertions(+), 13 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..8d0ebcb --- /dev/null +++ b/.circleci/config.yml @@ -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 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bb3c0ce..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: php - -php: - - 7.1 - - 7.2 - - 7.3 - -before_script: - - composer self-update - - composer install --no-interaction --prefer-source --no-dev - -matrix: - fast_finish: true