浏览代码

add PostgreSQL support for Travis CI

Damien ACCORSI 10 年前
父节点
当前提交
0abf420281
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      .travis.yml

+ 10 - 0
.travis.yml 查看文件

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
+