From 82945d803d10cb072b7e786e0a81094ccb2d067b Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 21 Jun 2019 22:38:04 -0500 Subject: [PATCH] Change to CircleCI --- .circleci/config.yml | 49 ++++++++++++++++++++++++++++++++++++++++++++ .gitattributes | 5 ++--- .travis.yml | 28 ------------------------- 3 files changed, 51 insertions(+), 31 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 0000000000..a7524747a2 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,49 @@ +version: 2.1 + +orbs: + bedrock: + executors: + node-10: + docker: + - image: 'circleci/node:10-stretch' + php-73: + docker: + - image: 'circleci/php:7.3-stretch' + php-72: + docker: + - image: 'circleci/php:7.2-stretch' + php-71: + docker: + - image: 'circleci/php:7.1-stretch' + jobs: + build-php: + parameters: + executor: + type: executor + executor: << parameters.executor >> + steps: + - run: php -v + - checkout + - restore_cache: + keys: + - composer-v1-{{ checksum "composer.lock" }} + - composer-v1- + - run: composer install -n --prefer-dist + - run: composer test + - save_cache: + key: composer-v1-{{ checksum "composer.lock" }} + paths: + - vendor + +workflows: + build: + jobs: + - bedrock/build-php: + name: build-php-73 + executor: bedrock/php-73 + - bedrock/build-php: + name: build-php-72 + executor: bedrock/php-72 + - bedrock/build-php: + name: build-php-71 + executor: bedrock/php-71 diff --git a/.gitattributes b/.gitattributes index 28b341dd84..6529ccbc7d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,4 @@ -/.github export-ignore -/.gitattributes export-ignore +/.circleci export-ignore /.editorconfig export-ignore -/.travis.yml export-ignore +/.gitattributes export-ignore /phpcs.xml export-ignore diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 86609fdeeb..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -sudo: false -language: php -php: - - 7.3 - - 7.2 - - 7.1 - - nightly - -matrix: - fast_finish: true - allow_failures: - - php: nightly - -cache: - apt: true - directories: - - $HOME/.composer/cache - - vendor - -before_install: - - phpenv config-rm xdebug.ini || true - - composer self-update - -install: - - composer install -o --prefer-dist --no-interaction - -script: - - composer test