Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
5d5de0bc
Commit
5d5de0bc
authored
Sep 20, 2016
by
J. Fernando Sánchez
Browse files
Makefile for automated testing (no more drone)
parent
0454fb1a
Changes
8
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
5d5de0bc
...
...
@@ -4,4 +4,5 @@
dist
build
README.html
__pycache__
\ No newline at end of file
__pycache__
Dockerfile-*
Dockerfile
→
Dockerfile
.deps
View file @
5d5de0bc
File moved
Dockerfile.template
0 → 100644
View file @
5d5de0bc
from python:{{PYVERSION}}-onbuild
ENTRYPOINT ["python", "-m", "senpy", "-f", ".", "--host", "0.0.0.0"]
MANIFEST.in
View file @
5d5de0bc
...
...
@@ -2,6 +2,7 @@ include requirements.txt
include test-requirements.txt
include README.md
include senpy/context.jsonld
include senpy/VERSION
graft senpy/plugins
graft senpy/schemas
graft senpy/templates
...
...
Makefile
0 → 100644
View file @
5d5de0bc
PYVERSIONS
=
2.7 3.4
NAME
=
senpy
REPO
=
gsiupm
VERSION
=
$(
shell
cat
$(NAME)
/VERSION
)
all
:
build run
dockerfiles
:
$(addprefix Dockerfile-
,
$(PYVERSIONS))
Dockerfile-%
:
Dockerfile.template
sed
"s/{{PYVERSION}}/
$*
/"
Dockerfile.template
>
Dockerfile-
$*
build
:
$(addprefix build-
,
$(PYVERSIONS))
build-%
:
Dockerfile-%
docker build
-t
'
$(REPO)
/
$(NAME)
:
$(VERSION)
-python$*'
-f
Dockerfile-
$*
.
;
test
:
$(addprefix test-
,
$(PYVERSIONS))
test-%
:
build-%
docker run
--rm
-w
/usr/src/app/
--entrypoint
=
/usr/local/bin/python
-ti
'
$(REPO)
/
$(NAME)
:
$(VERSION)
-python$*'
setup.py
test
;
test_pip-%
:
docker run
--rm
-ti
python:
$*
pip
-q
install
senpy
;
test_pip
:
$(addprefix test_pip-
,
$(PYVERSIONS))
.PHONY
:
test test-% build-% build test test_pip
senpy/VERSION
0 → 100644
View file @
5d5de0bc
0.5.7
\ No newline at end of file
senpy/__init__.py
View file @
5d5de0bc
...
...
@@ -18,4 +18,8 @@
Sentiment analysis server in Python
"""
__version__
=
"0.5.6"
import
os
VFILE
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"VERSION"
)
with
open
(
VFILE
,
'r'
)
as
f
:
__version__
=
f
.
read
().
strip
()
setup.py
View file @
5d5de0bc
...
...
@@ -15,7 +15,8 @@ except AttributeError:
install_reqs
=
[
str
(
ir
.
req
)
for
ir
in
install_reqs
]
test_reqs
=
[
str
(
ir
.
req
)
for
ir
in
test_reqs
]
exec
(
open
(
'senpy/__init__.py'
).
read
())
with
open
(
'senpy/VERSION'
)
as
f
:
__version__
=
f
.
read
().
strip
()
setup
(
name
=
'senpy'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment