##// END OF EJS Templates
added optional args to tox script, and fixed mysql commands
marcink -
r2587:c1c66976 beta
parent child Browse files
Show More
@@ -1,112 +1,112 b''
1 [tox]
1 [tox]
2 envlist = py25-sqlite,
2 envlist = py25-sqlite,
3 py25-mysql,
3 py25-mysql,
4 py25-postgresql,
4 py25-postgresql,
5 py26-sqlite,
5 py26-sqlite,
6 py26-mysql,
6 py26-mysql,
7 py26-postgresql,
7 py26-postgresql,
8 py27-sqlite,
8 py27-sqlite,
9 py27-mysql,
9 py27-mysql,
10 py27-postgresql
10 py27-postgresql
11
11
12
12
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
34 [testenv:py25-postgresql]
34 [testenv:py25-postgresql]
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
46
46
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
68 [testenv:py26-postgresql]
68 [testenv:py26-postgresql]
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
80
80
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
102 [testenv:py27-postgresql]
102 [testenv:py27-postgresql]
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 No newline at end of file
112 TEST_DB=postgresql://postgres:qwe@localhost/rhodecode_test
General Comments 0
You need to be logged in to leave comments. Login now