зеркало из https://github.com/mozilla/servicebook.git
Moved pipenv and tox requirements files to requirements directory
This commit is contained in:
Родитель
9faec23ec2
Коммит
3a9141cfe3
|
@ -1,6 +1,4 @@
|
|||
update: insecure
|
||||
requirements:
|
||||
- pipenv.txt
|
||||
- Pipfile
|
||||
- Pipfile.lock
|
||||
- tox.txt
|
||||
|
|
|
@ -5,7 +5,7 @@ env:
|
|||
- TOXENV=flake8
|
||||
python: 3.5
|
||||
install:
|
||||
- pip install -r tox.txt
|
||||
- pip install -r requirements/tox.txt
|
||||
script: tox
|
||||
after_success:
|
||||
- pip install coveralls
|
||||
|
|
|
@ -7,8 +7,8 @@ RUN addgroup --gid 10001 app
|
|||
RUN adduser --gid 10001 --uid 10001 --home /app --shell /sbin/nologin --no-create-home --disabled-password --gecos we,dont,care,yeah app
|
||||
|
||||
WORKDIR /app
|
||||
COPY Pipfile pipenv.txt /app/
|
||||
RUN pip install -r pipenv.txt uwsgi
|
||||
COPY requirements/pipenv.txt /app/requirements/
|
||||
RUN pip install -r requirements/pipenv.txt uwsgi
|
||||
COPY . /app
|
||||
RUN pipenv install --deploy --system
|
||||
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -4,7 +4,7 @@ downloadcache = {toxworkdir}/cache/
|
|||
envlist = py35,flake8
|
||||
|
||||
[testenv]
|
||||
deps = -rpipenv.txt
|
||||
deps = -rrequirements/pipenv.txt
|
||||
commands =
|
||||
pipenv install --dev
|
||||
pipenv run nosetests -s servicebook/tests/ --with-coverage --cover-package=servicebook --cover-html
|
||||
|
|
Загрузка…
Ссылка в новой задаче