Changeset - c1c66976001a
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-07-11 01:37:11
marcin@python-works.com
added optional args to tox script, and fixed mysql commands
1 file changed with 15 insertions and 15 deletions:
tox.ini
15
15
0 comments (0 inline, 0 general)
tox.ini
Show inline comments
 
@@ -12,101 +12,101 @@ envlist = py25-sqlite,
 

	
 
#### PYTHON 2.5 ####                    
 
[testenv:py25-sqlite]
 
basepython =
 
    python2.5
 
commands =
 
    nosetests
 
    nosetests []
 
setenv = 
 
    TEST_DB=sqlite:////tmp/rhodecode_test.sqlite
 

	
 
[testenv:py25-mysql]
 
basepython =
 
    python2.5
 
commands =
 
    mysql -uroot -pqwe -e 'drop database if exists rhodecode_test;'
 
    mysql -uroot -pqwe -e 'create database rhodecode_test;'
 
    nosetests
 
    mysql -uroot -pqwe -hlocalhost -e 'drop database if exists rhodecode_test;'
 
    mysql -uroot -pqwe -hlocalhost -e 'create database rhodecode_test;'
 
    nosetests []
 
deps =
 
    mysql-python
 
setenv = 
 
    TEST_DB=mysql://root:qwe@localhost/rhodecode_test
 

	
 
[testenv:py25-postgresql]
 
basepython =
 
    python2.5
 
commands =
 
    psql -Upostgres -Wqwe -hlocalhost -c 'drop database if exists rhodecode_test;'
 
    psql -Upostgres -Wqwe -hlocalhost -c 'create database rhodecode_test;'
 
    nosetests
 
    nosetests []
 
deps =
 
    psycopg2    
 
setenv = 
 
    TEST_DB=postgresql://postgres:qwe@localhost/rhodecode_test
 

	
 

	
 
#### PYTHON 2.6 ####
 
[testenv:py26-sqlite]
 
basepython =
 
    python2.6
 
commands =
 
    nosetests
 
    nosetests []
 
setenv = 
 
    TEST_DB=sqlite:////tmp/rhodecode_test.sqlite
 

	
 
[testenv:py26-mysql]
 
basepython =
 
    python2.6
 
commands =
 
    mysql -uroot -pqwe -e 'drop database if exists rhodecode_test;'
 
    mysql -uroot -pqwe -e 'create database rhodecode_test;'
 
    nosetests
 
    mysql -uroot -pqwe -hlocalhost -e 'drop database if exists rhodecode_test;'
 
    mysql -uroot -pqwe -hlocalhost -e 'create database rhodecode_test;'
 
    nosetests []
 
deps =
 
    mysql-python
 
setenv = 
 
    TEST_DB=mysql://root:qwe@localhost/rhodecode_test
 

	
 
[testenv:py26-postgresql]
 
basepython =
 
    python2.6
 
commands =
 
    psql -Upostgres -Wqwe -hlocalhost -c 'drop database if exists rhodecode_test;'
 
    psql -Upostgres -Wqwe -hlocalhost -c 'create database rhodecode_test;'
 
    nosetests
 
    nosetests []
 
deps =
 
    psycopg2    
 
setenv = 
 
    TEST_DB=postgresql://postgres:qwe@localhost/rhodecode_test
 

	
 

	
 
#### PYTHON 2.7 ####
 
[testenv:py27-sqlite]
 
basepython =
 
    python2.7
 
commands =
 
    nosetests
 
    nosetests []
 
setenv = 
 
    TEST_DB=sqlite:////tmp/rhodecode_test.sqlite
 

	
 
[testenv:py27-mysql]
 
basepython =
 
    python2.7
 
commands =
 
    mysql -uroot -pqwe -e 'drop database if exists rhodecode_test;'
 
    mysql -uroot -pqwe -e 'create database rhodecode_test;'
 
    nosetests
 
    mysql -uroot -pqwe -hlocalhost -e 'drop database if exists rhodecode_test;'
 
    mysql -uroot -pqwe -hlocalhost -e 'create database rhodecode_test;'
 
    nosetests []
 
deps =
 
    mysql-python
 
setenv = 
 
    TEST_DB=mysql://root:qwe@localhost/rhodecode_test
 

	
 
[testenv:py27-postgresql]
 
basepython =
 
    python2.7
 
commands =
 
    psql -Upostgres -Wqwe -hlocalhost -c 'drop database if exists rhodecode_test;'
 
    psql -Upostgres -Wqwe -hlocalhost -c 'create database rhodecode_test;'
 
    nosetests
 
    nosetests []
 
deps =
 
    psycopg2    
 
setenv = 
 
    TEST_DB=postgresql://postgres:qwe@localhost/rhodecode_test        
 
\ No newline at end of file
0 comments (0 inline, 0 general)