.travis.yml
中有以下内容:
addons: postgresql: "9.3" before_script: - psql --version - psql -c 'SELECT version();' -U postgres
我得到以下输出:
$psql --version $psql (Postgresql) 9.4.0 $psql -c 'SELECT version();' -U postgres Postgresql 9.1.14 on x86_64-unkNown-linux-gnu,compiled by gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3,64-bit
显然这里有问题,但我不知道如何告诉Travis实际使用我指定的postgres版本.我跟着the instructions in Travis Docs.这看起来像个错误.
这是一个问题,因为我使用新的json列类型,因此收到以下错误:
PG::Undefinedobject: ERROR: type "json" does not exist
解决方法
> https://github.com/orientation/orientation/blob/f9850e86a97eff77298f54ce68ca0a07c173e81a/.travis.yml#L6-L7
> https://github.com/orientation/orientation/blob/f9850e86a97eff77298f54ce68ca0a07c173e81a/.travis.yml#L39-L41
会发生什么事情是最后一个关键胜利和你的postgres东西被默默地丢弃.
如果您将它们组合如下,它将按预期工作.
插件:
postgres:“9.3”
code_climate:
repo_token:75408d377a0b3c1ab512bf3fb634617bccf2a1065f8c513e352139427ec8e1fb
有关此示例,请参见https://github.com/solarce/orientation/commit/8dd4c1c10b8470ff3529af1d6591d619f211354d和https://travis-ci.org/solarce/orientation/jobs/83220170
如果您有任何其他问题,请随时联系support@travis-ci.com
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。