Browse Source

add PostgreSQL support for Travis CI

Damien ACCORSI 10 years ago
parent
commit
0abf420281
1 changed files with 10 additions and 0 deletions
  1. 10 0
      .travis.yml

+ 10 - 0
.travis.yml View File

@@ -3,11 +3,21 @@ python:
3 3
   - "3.2"
4 4
   - "3.3"
5 5
   - "3.4"
6
+
7
+addons:
8
+  postgresql: "9.3"
9
+
6 10
 # command to install dependencies
7 11
 install:
8 12
   - "cd tracim && python setup.py develop && cd -"
9 13
   - "pip install -r install/requirements.txt"
10 14
   - "./bin/tg2env-patch tg2env/"
11 15
   
16
+before_script:
17
+  - "psql -c 'create database tracim_test;' -U postgres"
18
+  - "cd tracim && gearbox setup-app && cd -"
19
+
12 20
 # command to run tests
13 21
 script: nosetests --with-coverage --cover-package=tracim
22
+
23
+