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

Commit dadbc2a

Browse files
authored
Merge pull request #1 from bavix/develop
2.x: rewritten kit for glow cdn
2 parents a736b3e + 2193fa7 commit dadbc2a

33 files changed

+1201
-442
lines changed

.codeclimate.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exclude_patterns:
2+
- "demo/"
3+
- "tests/"

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
composer.phar
22
/vendor/
33
.idea/
4+
.phpunit.result.cache
5+
demo/outputs/*.jpg
6+
build/
7+
composer.lock

.travis.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
language: php
2+
php:
3+
- '7.3'
4+
- '7.4'
5+
- 'nightly'
6+
7+
matrix:
8+
allow_failures:
9+
- php: 'nightly'
10+
11+
before_script:
12+
- pecl install pcov
13+
- printf "\n" | pecl install imagick
14+
- phpenv config-rm xdebug.ini || echo "xdebug not available"
15+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
16+
- chmod +x ./cc-test-reporter
17+
- if [ $(phpenv version-name) = "7.4" ]; then ./cc-test-reporter before-build; fi
18+
- composer install
19+
20+
script:
21+
- ./vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/junit.xml
22+
- if [ $(phpenv version-name) = "7.4" ]; then ./vendor/bin/infection --coverage=build -j$(nproc); fi
23+
24+
after_success:
25+
- if [ $(phpenv version-name) = "7.4" ]; then ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT; fi
26+
- bash <(curl -s https://codecov.io/bash)

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Babichev Maxim
3+
Copyright (c) 2018 bavix
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ glow-kit - A set for working with an image.
2424
### Get started
2525

2626
The library implements simple algorithms for working with images.
27-
- fit
28-
- none
29-
- contain
30-
- cover
27+
- Scale Down
28+
- Contain
29+
- Cover
30+
- Fit
3131

3232
#### Fit Image
3333

composer.json

+9
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,18 @@
1919
"php": "^7.3",
2020
"intervention/image": "^2.5"
2121
},
22+
"require-dev": {
23+
"infection/infection": "^0.16|^0.17",
24+
"phpunit/phpunit": "^9.3"
25+
},
2226
"autoload": {
2327
"psr-4": {
2428
"Bavix\\Glow\\": "src/"
2529
}
30+
},
31+
"autoload-dev": {
32+
"psr-4": {
33+
"Bavix\\Glow\\Test\\": "tests/"
34+
}
2635
}
2736
}

composer.lock

-252
This file was deleted.

0 commit comments

Comments
 (0)