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
   - "3.2"
3
   - "3.2"
4
   - "3.3"
4
   - "3.3"
5
   - "3.4"
5
   - "3.4"
6
+
7
+addons:
8
+  postgresql: "9.3"
9
+
6
 # command to install dependencies
10
 # command to install dependencies
7
 install:
11
 install:
8
   - "cd tracim && python setup.py develop && cd -"
12
   - "cd tracim && python setup.py develop && cd -"
9
   - "pip install -r install/requirements.txt"
13
   - "pip install -r install/requirements.txt"
10
   - "./bin/tg2env-patch tg2env/"
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
 # command to run tests
20
 # command to run tests
13
 script: nosetests --with-coverage --cover-package=tracim
21
 script: nosetests --with-coverage --cover-package=tracim
22
+
23
+