Browse Source

setup database in before_script step

Damien ACCORSI 8 years ago
parent
commit
9563900c0f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      .travis.yml

+ 2 - 1
.travis.yml View File

@@ -25,7 +25,8 @@ install:
25 25
 before_script:
26 26
   - "psql -c 'create database tracim_test;' -U postgres"
27 27
   - "cp tracim/development.ini.base tracim/development.ini"
28
-  - "cd tracim && gearbox migrate upgrade"
28
+  - "cd tracim && gearbox setup-app -c test.ini"
29
+  - "cd tracim && gearbox migrate -c test.ini upgrade"
29 30
 
30 31
 # command to run tests
31 32
 script: "cd tracim && nosetests -v --with-coverage --cover-package=tracim --cover-erase"