annotate .travis.yml @ 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 a8835d6767a1
children 8e6cf847d9d8
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
2582
d01a01ec9d96 use whoosh latest branch to fix py25 tests
Marcin Kuzminski <marcin@python-works.com>
parents: 2561
diff changeset
19 - pip install https://bitbucket.org/mchaput/whoosh/get/2.4x.zip
2561
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
20 - pip install . --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