comparison tox.ini @ 2587:c1c66976001a beta

added optional args to tox script, and fixed mysql commands
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 11 Jul 2012 01:37:11 +0200
parents 6ccf86ebfd4e
children 17e3926c3753
comparison
equal deleted inserted replaced
2586:a5e32ed7f790 2587:c1c66976001a
13 #### PYTHON 2.5 #### 13 #### PYTHON 2.5 ####
14 [testenv:py25-sqlite] 14 [testenv:py25-sqlite]
15 basepython = 15 basepython =
16 python2.5 16 python2.5
17 commands = 17 commands =
18 nosetests 18 nosetests []
19 setenv = 19 setenv =
20 TEST_DB=sqlite:////tmp/rhodecode_test.sqlite 20 TEST_DB=sqlite:////tmp/rhodecode_test.sqlite
21 21
22 [testenv:py25-mysql] 22 [testenv:py25-mysql]
23 basepython = 23 basepython =
24 python2.5 24 python2.5
25 commands = 25 commands =
26 mysql -uroot -pqwe -e 'drop database if exists rhodecode_test;' 26 mysql -uroot -pqwe -hlocalhost -e 'drop database if exists rhodecode_test;'
27 mysql -uroot -pqwe -e 'create database rhodecode_test;' 27 mysql -uroot -pqwe -hlocalhost -e 'create database rhodecode_test;'
28 nosetests 28 nosetests []
29 deps = 29 deps =
30 mysql-python 30 mysql-python
31 setenv = 31 setenv =
32 TEST_DB=mysql://root:qwe@localhost/rhodecode_test 32 TEST_DB=mysql://root:qwe@localhost/rhodecode_test
33 33
35 basepython = 35 basepython =
36 python2.5 36 python2.5
37 commands = 37 commands =
38 psql -Upostgres -Wqwe -hlocalhost -c 'drop database if exists rhodecode_test;' 38 psql -Upostgres -Wqwe -hlocalhost -c 'drop database if exists rhodecode_test;'
39 psql -Upostgres -Wqwe -hlocalhost -c 'create database rhodecode_test;' 39 psql -Upostgres -Wqwe -hlocalhost -c 'create database rhodecode_test;'
40 nosetests 40 nosetests []
41 deps = 41 deps =
42 psycopg2 42 psycopg2
43 setenv = 43 setenv =
44 TEST_DB=postgresql://postgres:qwe@localhost/rhodecode_test 44 TEST_DB=postgresql://postgres:qwe@localhost/rhodecode_test
45 45
47 #### PYTHON 2.6 #### 47 #### PYTHON 2.6 ####
48 [testenv:py26-sqlite] 48 [testenv:py26-sqlite]
49 basepython = 49 basepython =
50 python2.6 50 python2.6
51 commands = 51 commands =
52 nosetests 52 nosetests []
53 setenv = 53 setenv =
54 TEST_DB=sqlite:////tmp/rhodecode_test.sqlite 54 TEST_DB=sqlite:////tmp/rhodecode_test.sqlite
55 55
56 [testenv:py26-mysql] 56 [testenv:py26-mysql]
57 basepython = 57 basepython =
58 python2.6 58 python2.6
59 commands = 59 commands =
60 mysql -uroot -pqwe -e 'drop database if exists rhodecode_test;' 60 mysql -uroot -pqwe -hlocalhost -e 'drop database if exists rhodecode_test;'
61 mysql -uroot -pqwe -e 'create database rhodecode_test;' 61 mysql -uroot -pqwe -hlocalhost -e 'create database rhodecode_test;'
62 nosetests 62 nosetests []
63 deps = 63 deps =
64 mysql-python 64 mysql-python
65 setenv = 65 setenv =
66 TEST_DB=mysql://root:qwe@localhost/rhodecode_test 66 TEST_DB=mysql://root:qwe@localhost/rhodecode_test
67 67
69 basepython = 69 basepython =
70 python2.6 70 python2.6
71 commands = 71 commands =
72 psql -Upostgres -Wqwe -hlocalhost -c 'drop database if exists rhodecode_test;' 72 psql -Upostgres -Wqwe -hlocalhost -c 'drop database if exists rhodecode_test;'
73 psql -Upostgres -Wqwe -hlocalhost -c 'create database rhodecode_test;' 73 psql -Upostgres -Wqwe -hlocalhost -c 'create database rhodecode_test;'
74 nosetests 74 nosetests []
75 deps = 75 deps =
76 psycopg2 76 psycopg2
77 setenv = 77 setenv =
78 TEST_DB=postgresql://postgres:qwe@localhost/rhodecode_test 78 TEST_DB=postgresql://postgres:qwe@localhost/rhodecode_test
79 79
81 #### PYTHON 2.7 #### 81 #### PYTHON 2.7 ####
82 [testenv:py27-sqlite] 82 [testenv:py27-sqlite]
83 basepython = 83 basepython =
84 python2.7 84 python2.7
85 commands = 85 commands =
86 nosetests 86 nosetests []
87 setenv = 87 setenv =
88 TEST_DB=sqlite:////tmp/rhodecode_test.sqlite 88 TEST_DB=sqlite:////tmp/rhodecode_test.sqlite
89 89
90 [testenv:py27-mysql] 90 [testenv:py27-mysql]
91 basepython = 91 basepython =
92 python2.7 92 python2.7
93 commands = 93 commands =
94 mysql -uroot -pqwe -e 'drop database if exists rhodecode_test;' 94 mysql -uroot -pqwe -hlocalhost -e 'drop database if exists rhodecode_test;'
95 mysql -uroot -pqwe -e 'create database rhodecode_test;' 95 mysql -uroot -pqwe -hlocalhost -e 'create database rhodecode_test;'
96 nosetests 96 nosetests []
97 deps = 97 deps =
98 mysql-python 98 mysql-python
99 setenv = 99 setenv =
100 TEST_DB=mysql://root:qwe@localhost/rhodecode_test 100 TEST_DB=mysql://root:qwe@localhost/rhodecode_test
101 101
103 basepython = 103 basepython =
104 python2.7 104 python2.7
105 commands = 105 commands =
106 psql -Upostgres -Wqwe -hlocalhost -c 'drop database if exists rhodecode_test;' 106 psql -Upostgres -Wqwe -hlocalhost -c 'drop database if exists rhodecode_test;'
107 psql -Upostgres -Wqwe -hlocalhost -c 'create database rhodecode_test;' 107 psql -Upostgres -Wqwe -hlocalhost -c 'create database rhodecode_test;'
108 nosetests 108 nosetests []
109 deps = 109 deps =
110 psycopg2 110 psycopg2
111 setenv = 111 setenv =
112 TEST_DB=postgresql://postgres:qwe@localhost/rhodecode_test 112 TEST_DB=postgresql://postgres:qwe@localhost/rhodecode_test