Selaa lähdekoodia

setup database in before_script step

Damien ACCORSI 9 vuotta sitten
vanhempi
commit
9563900c0f
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      .travis.yml

+ 2 - 1
.travis.yml Näytä tiedosto

@@ -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"