mirror of
https://github.com/wger-project/wger.git
synced 2026-02-18 00:17:51 +01:00
Split requirements file into two
This makes it easier to keep track of packages needed for development and production, and it's better for testing
This commit is contained in:
@@ -15,7 +15,7 @@ install:
|
||||
# - sh -c "if [ '$DB' = 'mysql' ]; then pip install mysql-python; fi"
|
||||
- sh -c "if [ '$DB' = 'postgresql' ]; then pip install psycopg2; fi"
|
||||
|
||||
- pip install -r requirements.txt
|
||||
- pip install -r requirements_devel.txt
|
||||
- pip install -q Django==$DJANGO_VERSION
|
||||
- python extras/scripts/create_local_settings.py
|
||||
|
||||
@@ -31,10 +31,13 @@ before_script:
|
||||
script:
|
||||
|
||||
# Regular application
|
||||
- ./manage.py test
|
||||
- coverage run --source='.' ./manage.py test
|
||||
|
||||
# Mobile version
|
||||
- TEST_MOBILE=True ./manage.py test
|
||||
|
||||
# Formatting
|
||||
- pep8 --max-line-length=100 --exclude="urls.py,*migrations*" wger
|
||||
|
||||
# Code coverage
|
||||
- coverage report
|
||||
@@ -1,9 +1,12 @@
|
||||
#
|
||||
# Requirements for wger for production
|
||||
#
|
||||
|
||||
Django>=1.6,<1.7
|
||||
django-browserid==0.9
|
||||
django-recaptcha
|
||||
reportlab
|
||||
django_mobile
|
||||
pep8
|
||||
bleach
|
||||
south < 2.0
|
||||
django-tastypie==0.9.16
|
||||
|
||||
11
requirements_devel.txt
Normal file
11
requirements_devel.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Requirements for wger during development
|
||||
#
|
||||
|
||||
# Production packages
|
||||
-r requirements.txt
|
||||
|
||||
# Development packages
|
||||
pep8
|
||||
django-debug-toolbar
|
||||
coverage
|
||||
Reference in New Issue
Block a user