annotate .travis.yml @ 2561:6ccf86ebfd4e beta

tox+travis with multiple dbs
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 06 Jul 2012 16:25:34 +0200
parents
children d01a01ec9d96
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2561
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 language: python
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2 python:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3 - "2.5"
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 - "2.6"
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 - "2.7"
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7 env:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
8 - TEST_DB=sqlite:////tmp/rhodecode_test.sqlite
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 - TEST_DB=mysql://root@127.0.0.1/rhodecode_test
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 - TEST_DB=postgresql://postgres@127.0.0.1/rhodecode_test
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
12 # command to install dependencies
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 before_script:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14 - mysql -e 'create database rhodecode_test;'
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15 - psql -c 'create database rhodecode_test;' -U postgres
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
16
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
17 install:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
18 - pip install mysql-python psycopg2 mock unittest2
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 - pip install . --use-mirrors
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
20 - pip install -r requirements.txt --use-mirrors
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
21 # command to run tests
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
22 script: nosetests
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
23
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
24 notifications:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
25 email:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
26 - marcinkuz@gmail.com
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
27 irc: "irc.freenode.org#rhodecode"
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
28
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
29 branches:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
30 only:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
31 - dev