Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from bavix/develop
Browse files Browse the repository at this point in the history
2.x: rewritten kit for glow cdn
  • Loading branch information
rez1dent3 authored Aug 31, 2020
2 parents a736b3e + 2193fa7 commit dadbc2a
Show file tree
Hide file tree
Showing 33 changed files with 1,201 additions and 442 deletions.
3 changes: 3 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
exclude_patterns:
- "demo/"
- "tests/"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
composer.phar
/vendor/
.idea/
.phpunit.result.cache
demo/outputs/*.jpg
build/
composer.lock
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: php
php:
- '7.3'
- '7.4'
- 'nightly'

matrix:
allow_failures:
- php: 'nightly'

before_script:
- pecl install pcov
- printf "\n" | pecl install imagick
- phpenv config-rm xdebug.ini || echo "xdebug not available"
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- if [ $(phpenv version-name) = "7.4" ]; then ./cc-test-reporter before-build; fi
- composer install

script:
- ./vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/junit.xml
- if [ $(phpenv version-name) = "7.4" ]; then ./vendor/bin/infection --coverage=build -j$(nproc); fi

after_success:
- if [ $(phpenv version-name) = "7.4" ]; then ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT; fi
- bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Babichev Maxim
Copyright (c) 2018 bavix

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ glow-kit - A set for working with an image.
### Get started

The library implements simple algorithms for working with images.
- fit
- none
- contain
- cover
- Scale Down
- Contain
- Cover
- Fit

#### Fit Image

Expand Down
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,18 @@
"php": "^7.3",
"intervention/image": "^2.5"
},
"require-dev": {
"infection/infection": "^0.16|^0.17",
"phpunit/phpunit": "^9.3"
},
"autoload": {
"psr-4": {
"Bavix\\Glow\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Bavix\\Glow\\Test\\": "tests/"
}
}
}
252 changes: 0 additions & 252 deletions composer.lock

This file was deleted.

Loading

0 comments on commit dadbc2a

Please sign in to comment.