config.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # PHP CircleCI 2.0 configuration file
  2. #
  3. # Check https://circleci.com/docs/2.0/language-php/ for more details
  4. #
  5. version: 2
  6. jobs:
  7. build:
  8. docker:
  9. # Specify the version you desire here
  10. - image: circleci/php:7.2
  11. # Specify service dependencies here if necessary
  12. # CircleCI maintains a library of pre-built images
  13. # documented at https://circleci.com/docs/2.0/circleci-images/
  14. # Using the RAM variation mitigates I/O contention
  15. # for database intensive operations.
  16. # - image: circleci/mysql:5.7-ram
  17. #
  18. # - image: redis:2.8.19
  19. steps:
  20. - checkout
  21. - run: sudo apt update # PHP CircleCI 2.0 Configuration File# PHP CircleCI 2.0 Configuration File sudo apt install zlib1g-dev libsqlite3-dev
  22. # Download and cache dependencies
  23. - restore_cache:
  24. keys:
  25. # "composer.lock" can be used if it is committed to the repo
  26. - v1-dependencies-{{ checksum "composer.json" }}
  27. # fallback to using the latest cache if no exact match is found
  28. - v1-dependencies-
  29. - run: composer install -n --prefer-dist
  30. - save_cache:
  31. key: v1-dependencies-{{ checksum "composer.json" }}
  32. paths:
  33. - ./vendor
  34. # Check code style
  35. - run: ./vendor/bin/phpcs src