浏览代码

debugging travis build

Damien ACCORSI 9 年前
父节点
当前提交
768425e1e4
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 1
      .travis.yml
  2. 2 1
      tracim/development.ini.base

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

25
 before_script:
25
 before_script:
26
   - "psql -c 'create database tracim_test;' -U postgres"
26
   - "psql -c 'create database tracim_test;' -U postgres"
27
   - "cp ${TRAVIS_BUILD_DIR}/tracim/development.ini.base ${TRAVIS_BUILD_DIR}/tracim/development.ini"
27
   - "cp ${TRAVIS_BUILD_DIR}/tracim/development.ini.base ${TRAVIS_BUILD_DIR}/tracim/development.ini"
28
-  - "cd ${TRAVIS_BUILD_DIR}/tracim && gearbox setup-app -c ${TRAVIS_BUILD_DIR}/tracim/test.ini"
28
+#  - "cd ${TRAVIS_BUILD_DIR}/tracim && gearbox setup-app -c ${TRAVIS_BUILD_DIR}/tracim/test.ini"
29
+  - "cd ${TRAVIS_BUILD_DIR}/tracim && gearbox setup-app"
29
 #  - "cd ${TRAVIS_BUILD_DIR}/tracim && gearbox migrate -c ${TRAVIS_BUILD_DIR}/tracim/test.ini upgrade"
30
 #  - "cd ${TRAVIS_BUILD_DIR}/tracim && gearbox migrate -c ${TRAVIS_BUILD_DIR}/tracim/test.ini upgrade"
30
 
31
 
31
 # command to run tests
32
 # command to run tests

+ 2 - 1
tracim/development.ini.base 查看文件

62
 # invalidate the URI when specifying a SQLite db via path name
62
 # invalidate the URI when specifying a SQLite db via path name
63
 # sqlalchemy.url=postgresql://username:password@hostname:port/databasename
63
 # sqlalchemy.url=postgresql://username:password@hostname:port/databasename
64
 # sqlalchemy.url=mysql://username:password@hostname:port/databasename
64
 # sqlalchemy.url=mysql://username:password@hostname:port/databasename
65
-sqlalchemy.url = postgresql://tracim_user:tracim_user_password@127.0.0.1:5432/tracim?client_encoding=utf8
65
+# sqlalchemy.url = postgresql://tracim_user:tracim_user_password@127.0.0.1:5432/tracim?client_encoding=utf8
66
+sqlalchemy.url = postgresql://postgres:dummy@127.0.0.1:5432/tracim_test?client_encoding=utf8
66
 
67
 
67
 #echo shouldn't be used together with the logging module.
68
 #echo shouldn't be used together with the logging module.
68
 sqlalchemy.echo = false
69
 sqlalchemy.echo = false