mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-05-05 12:14:41 +00:00
113 lines
3 KiB
Bash
Executable file
113 lines
3 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ! -d .venv_14 ]
|
|
then
|
|
virtualenv --no-site-packages --distribute --python=python2.7 .venv_14
|
|
. .venv_14/bin/activate
|
|
pip install --use-mirrors Django==1.4 coverage python-memcached six requests==2.1.0 polib==1.0.4 microsofttranslator==0.5
|
|
deactivate
|
|
fi
|
|
if [ ! -d .venv_15 ]
|
|
then
|
|
virtualenv --no-site-packages --distribute --python=python2.7 .venv_15
|
|
. .venv_15/bin/activate
|
|
pip install --use-mirrors Django==1.5 coverage python-memcached six requests==2.1.0 polib==1.0.4 microsofttranslator==0.5
|
|
deactivate
|
|
fi
|
|
if [ ! -d .venv_15_p3 ]
|
|
then
|
|
virtualenv --no-site-packages --distribute --python=python3 .venv_15_p3
|
|
. .venv_15_p3/bin/activate
|
|
pip install --use-mirrors Django==1.5 coverage python3-memcached six requests==2.1.0 polib==1.0.4 microsofttranslator==0.5
|
|
deactivate
|
|
fi
|
|
if [ ! -d .venv_16 ]
|
|
then
|
|
virtualenv --no-site-packages --distribute --python=python2.7 .venv_16
|
|
. .venv_16/bin/activate
|
|
pip install --use-mirrors coverage python-memcached six Django==1.6.1 requests==2.1.0 polib==1.0.4 microsofttranslator==0.5
|
|
deactivate
|
|
fi
|
|
if [ ! -d .venv_16_p3 ]
|
|
then
|
|
virtualenv --no-site-packages --distribute --python=python3 .venv_16_p3
|
|
. .venv_16_p3/bin/activate
|
|
pip install --use-mirrors coverage python3-memcached six Django==1.6.1 requests==2.1.0 polib==1.0.4 microsofttranslator==0.5
|
|
deactivate
|
|
fi
|
|
if [ ! -d .venv_17 ]
|
|
then
|
|
virtualenv --no-site-packages --distribute --python=python2.7 .venv_17
|
|
. .venv_17/bin/activate
|
|
pip install Django==1.7
|
|
pip install --use-mirrors coverage python-memcached six requests==2.1.0 polib==1.0.4 microsofttranslator==0.5
|
|
deactivate
|
|
fi
|
|
if [ ! -d .venv_17_p3 ]
|
|
then
|
|
virtualenv --no-site-packages --distribute --python=python3 .venv_17_p3
|
|
. .venv_17_p3/bin/activate
|
|
pip install Django==1.7
|
|
pip install --use-mirrors coverage python3-memcached six requests==2.1.0 polib==1.0.4 microsofttranslator==0.5
|
|
deactivate
|
|
fi
|
|
|
|
|
|
. .venv_14/bin/activate
|
|
cd testproject
|
|
python manage.py --version
|
|
python --version
|
|
python manage.py test rosetta
|
|
cd ..
|
|
deactivate
|
|
|
|
. .venv_15/bin/activate
|
|
cd testproject
|
|
python manage.py --version
|
|
python --version
|
|
python manage.py test rosetta
|
|
cd ..
|
|
deactivate
|
|
|
|
. .venv_15_p3/bin/activate
|
|
cd testproject
|
|
python manage.py --version
|
|
python --version
|
|
python manage.py test rosetta
|
|
cd ..
|
|
deactivate
|
|
|
|
. .venv_16/bin/activate
|
|
cd testproject
|
|
python manage.py --version
|
|
python --version
|
|
python manage.py test rosetta
|
|
cd ..
|
|
deactivate
|
|
|
|
. .venv_16_p3/bin/activate
|
|
cd testproject
|
|
python manage.py --version
|
|
python --version
|
|
python manage.py test rosetta
|
|
cd ..
|
|
deactivate
|
|
|
|
. .venv_17/bin/activate
|
|
cd testproject
|
|
python manage.py --version
|
|
python --version
|
|
python manage.py test rosetta
|
|
cd ..
|
|
deactivate
|
|
|
|
. .venv_17_p3/bin/activate
|
|
cd testproject
|
|
python manage.py --version
|
|
python --version
|
|
python manage.py test rosetta
|
|
cd ..
|
|
deactivate
|
|
|
|
# Check translations
|
|
for d in `find rosetta -name LC_MESSAGES -type d`; do msgfmt -c -o $d/django.mo $d/django.po; done
|