PHP Classes

File: .circleci/config.yml

Recommend this page to a friend!
  Classes of Zacchaeus Bolaji  >  Laravel Revert Model Events  >  .circleci/config.yml  >  Download  
File: .circleci/config.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Revert Model Events
Log, list and undo changes done on model objects
Author: By
Last change:
Date: 2 years ago
Size: 1,983 bytes


Class file image Download
# PHP CircleCI 2.0 configuration file
# Check for more details
version: 2
      CC_TEST_REPORTER_ID: 52336ab7c12c7f9c3af8305792a9a87174689d033f7aa83ce4cc5436d65dae0c
      # Specify the version you desire here
      - image: circleci/php:7.2-node-browsers

      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at
      # Using the RAM variation mitigates I/O contention
      # for database intensive operations.
      # - image: circleci/mysql:5.7-ram
      # - image: redis:2.8.19

      - checkout

      - run: sudo apt update # PHP CircleCI 2.0 Configuration File# PHP CircleCI 2.0 Configuration File sudo apt install zlib1g-dev libsqlite3-dev
      - run: sudo docker-php-ext-install zip

      # Download and cache dependencies
      - restore_cache:
            # "composer.lock" can be used if it is committed to the repo
            - v1-dependencies-{{ checksum "composer.json" }}
            # fallback to using the latest cache if no exact match is found
            - v1-dependencies-

      - run: composer install -n --prefer-dist

      - save_cache:
          key: v1-dependencies-{{ checksum "composer.json" }}
            - ./vendor

      # run tests with phpunit or codecept
      - run: composer dump-autoload -o
      - run: ./vendor/bin/phpunit --coverage-clover=coverage.clover
      - run: curl -L > ./cc-test-reporter
      - run: chmod +x ./cc-test-reporter
      - run: sudo docker-php-ext-enable xdebug
      - run: ./cc-test-reporter before-build
      - run: sudo vendor/bin/phpunit --coverage-clover clover.xml
      - run: ./cc-test-reporter after-build --coverage-input-type clover --exit-code $?
For more information send a message to info at phpclasses dot org.