浏览代码

move database schema upgrade from installation to 'before script'

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

+ 2 - 2
.travis.yml 查看文件

21
   - "pip install -r install/requirements.txt; echo"
21
   - "pip install -r install/requirements.txt; echo"
22
   - "./bin/tg2env-patch 2 /home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages"
22
   - "./bin/tg2env-patch 2 /home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages"
23
   - "pip install coveralls"
23
   - "pip install coveralls"
24
-  - "cd tracim && gearbox migrate upgrade"
25
-  
24
+
26
 before_script:
25
 before_script:
27
   - "psql -c 'create database tracim_test;' -U postgres"
26
   - "psql -c 'create database tracim_test;' -U postgres"
28
   - "cp tracim/development.ini.base tracim/development.ini"
27
   - "cp tracim/development.ini.base tracim/development.ini"
28
+  - "cd tracim && gearbox migrate upgrade"
29
 
29
 
30
 # command to run tests
30
 # command to run tests
31
 script: "cd tracim && nosetests -v --with-coverage --cover-package=tracim --cover-erase"
31
 script: "cd tracim && nosetests -v --with-coverage --cover-package=tracim --cover-erase"