.travis.yml version setting for postgresql ignored -


with following in my .travis.yml:

addons:   postgresql: "9.3" before_script:   - psql --version   - psql -c 'select version();' -u postgres 

i following output:

$ psql --version $ psql (postgresql) 9.4.0 $ psql -c 'select version();' -u postgres  postgresql 9.1.14 on x86_64-unknown-linux-gnu, compiled gcc (ubuntu/linaro 4.6.3-1ubuntu5) 4.6.3, 64-bit 

obviously there's wrong here i'm not sure how tell travis use postgres version specified. followed the instructions in travis docs. seems bug.

this issue because i'm using new json column type , therefore getting following error:

pg::undefinedobject: error:  type "json" not exist 

i took , you're encountering bug in how our yaml parsing handles duplicate keys. fixing how handle we're working.

you have 2 addons: keys in .travis.yml files

  1. https://github.com/orientation/orientation/blob/f9850e86a97eff77298f54ce68ca0a07c173e81a/.travis.yml#l6-l7
  2. https://github.com/orientation/orientation/blob/f9850e86a97eff77298f54ce68ca0a07c173e81a/.travis.yml#l39-l41

what happens last key wins , postgres stuff silently discarded.

if combine them following, work desired.

addons: postgres: "9.3" code_climate: repo_token: 75408d377a0b3c1ab512bf3fb634617bccf2a1065f8c513e352139427ec8e1fb

see https://github.com/solarce/orientation/commit/8dd4c1c10b8470ff3529af1d6591d619f211354d , https://travis-ci.org/solarce/orientation/jobs/83220170 example of this

please feel free reach out support@travis-ci.com if have other questions


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -