annotate .travis.yml @ 2743:64ee7cf4a76d beta

remove GIT before installing this ppa to fix upgrade issues
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 25 Aug 2012 22:14:31 +0200
parents 63d3d20cad95
children 925c77b9d3f1
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
2742
63d3d20cad95 Take that travis !
Marcin Kuzminski <marcin@python-works.com>
parents: 2638
diff changeset
16 - git --version
63d3d20cad95 Take that travis !
Marcin Kuzminski <marcin@python-works.com>
parents: 2638
diff changeset
17
63d3d20cad95 Take that travis !
Marcin Kuzminski <marcin@python-works.com>
parents: 2638
diff changeset
18 before_install:
2743
64ee7cf4a76d remove GIT before installing this ppa to fix upgrade issues
Marcin Kuzminski <marcin@python-works.com>
parents: 2742
diff changeset
19 - sudo apt-get remove git
2742
63d3d20cad95 Take that travis !
Marcin Kuzminski <marcin@python-works.com>
parents: 2638
diff changeset
20 - sudo add-apt-repository ppa:pdoes/ppa -y
63d3d20cad95 Take that travis !
Marcin Kuzminski <marcin@python-works.com>
parents: 2638
diff changeset
21 - sudo apt-get update -y
63d3d20cad95 Take that travis !
Marcin Kuzminski <marcin@python-works.com>
parents: 2638
diff changeset
22 - sudo apt-get install git -y
2561
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 install:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
25 - pip install mysql-python psycopg2 mock unittest2
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
26 - pip install . --use-mirrors
2742
63d3d20cad95 Take that travis !
Marcin Kuzminski <marcin@python-works.com>
parents: 2638
diff changeset
27
2561
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
28 # command to run tests
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
29 script: nosetests
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
30
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
31 notifications:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
32 email:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
33 - marcinkuz@gmail.com
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
34 irc: "irc.freenode.org#rhodecode"
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
35
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
36 branches:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
37 only:
6ccf86ebfd4e tox+travis with multiple dbs
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
38 - dev