Skip to content

Commit 6b6bbff

Browse files
committed
Merge branch 'master' of github.com:yooper/php-text-analysis
2 parents 0261720 + 4e67b8e commit 6b6bbff

File tree

6 files changed

+73
-2
lines changed

6 files changed

+73
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language: php
33
php:
44
- 7.0
55
- 7.1
6+
- 7.2
67

78
before_script:
89
- composer self-update

Dockerfile70

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM php:7.0-cli
2+
3+
RUN apt-get update && \
4+
apt-get install -y --no-install-recommends git zip
5+
6+
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
7+
8+
RUN mkdir -p /app
9+
10+
COPY ./ /app
11+
12+
RUN composer --working-dir=/app install
13+
14+
RUN cd /app && SKIP_TEST=1 ./vendor/bin/phpunit -d memory_limit=1G
15+
16+
CMD ["/bin/sh"]

Dockerfile71

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM php:7.1-cli
2+
3+
RUN apt-get update && \
4+
apt-get install -y --no-install-recommends git zip
5+
6+
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
7+
8+
RUN mkdir -p /app
9+
10+
COPY ./ /app
11+
12+
RUN composer --working-dir=/app install
13+
14+
RUN cd /app && SKIP_TEST=1 ./vendor/bin/phpunit -d memory_limit=1G
15+
16+
17+
CMD ["/bin/sh"]

Dockerfile72

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM php:7.2-cli
2+
3+
RUN apt-get update && \
4+
apt-get install -y --no-install-recommends git zip
5+
6+
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
7+
8+
RUN mkdir -p /app
9+
10+
COPY ./ /app
11+
12+
RUN composer --working-dir=/app install
13+
14+
RUN cd /app && SKIP_TEST=1 ./vendor/bin/phpunit -d memory_limit=1G
15+
16+
CMD ["/bin/sh"]

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Dan Cardin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "yooper/php-text-analysis",
33
"description": "PHP Text Analysis is a library for performing Information Retrieval (IR) and Natural Language Processing (NLP) tasks using the PHP language",
44
"keywords": ["nlp","ir","text analysis","natural language processing"],
5-
"license": "Apache 2",
5+
"license": "MIT",
66
"authors": [
77
{
88
"name": "yooper",
@@ -24,7 +24,7 @@
2424
}
2525
},
2626
"require" : {
27-
"php": ">=7.0",
27+
"php": ">=7",
2828
"yooper/stop-words": "~1",
2929
"symfony/console": "~2.7|~3.4|~4.0",
3030
"camspiers/porter-stemmer": "~1",

0 commit comments

Comments
 (0)