Browse Source

Circle CI v2 yml

Siad Ardroumli 6 years ago
parent
commit
9573da3ba4
3 changed files with 24 additions and 25 deletions
  1. 23 0
      .circleci/config.yml
  2. 1 0
      .gitattributes
  3. 0 25
      circle.yml

+ 23 - 0
.circleci/config.yml

@@ -0,0 +1,23 @@
+version: 2
+
+jobs:
+    build:
+        macos:
+            xcode: '9.0'
+        steps:
+            - checkout
+
+            - save_cache:
+                key: dependency-cache
+                paths:
+                    - ~/.composer
+                    - ~/Library/Caches/Homebrew
+
+            - run: brew update
+            - run: brew install php72
+            - run: echo "memory_limit = 512M" > $(brew --prefix)/etc/php/7.2/conf.d/memory.ini
+            - run: curl -sS https://getcomposer.org/installer | php
+            - run: php composer.phar global show hirak/prestissimo -q || php composer.phar global require --no-interaction --no-progress --optimize-autoloader hirak/prestissimo
+            - run: php composer.phar install --optimize-autoloader --no-interaction --no-progress --no-suggest
+            - run: vendor/bin/phpunit
+            - run: PHP_CS_FIXER_FUTURE_MODE=1 php php-cs-fixer --diff --dry-run -v fix

+ 1 - 0
.gitattributes

@@ -9,6 +9,7 @@ tests/Test/AbstractFixerWithAliasedOptionsTestCase.php export-ignore
 tests/Test/AbstractTransformerTestCase.php export-ignore
 
 .appveyor.yml export-ignore
+.circleci/ export-ignore
 .composer-require-checker.json export-ignore
 .editorconfig export-ignore
 .gitattributes export-ignore

+ 0 - 25
circle.yml

@@ -1,25 +0,0 @@
-machine:
-    xcode:
-        version: 8.2
-
-checkout:
-    pre:
-        - system_profiler SPSoftwareDataType
-
-dependencies:
-    cache_directories:
-        - ~/.composer
-        - ~/Library/Caches/Homebrew
-    pre:
-        - brew update
-        - brew install php72
-        - echo "memory_limit = 512M" > $(brew --prefix)/etc/php/7.2/conf.d/memory.ini
-        - curl -sS https://getcomposer.org/installer | php
-        - php composer.phar global show hirak/prestissimo -q || php composer.phar global require --no-interaction --no-progress --optimize-autoloader hirak/prestissimo
-    override:
-        - php composer.phar install --optimize-autoloader --no-interaction --no-progress --no-suggest
-
-test:
-    override:
-        - vendor/bin/phpunit
-        - PHP_CS_FIXER_FUTURE_MODE=1 php php-cs-fixer --diff --dry-run -v fix