隨着my .travis.yml
如下:.travis.yml版本設置對PostgreSQL忽略
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
顯然有什麼東西錯在這裏,但我不知道怎麼樣告訴特拉維斯實際使用我指定的postgres版本。我跟着the instructions in Travis Docs。這看起來像一個錯誤。
這是一個問題,因爲我使用的是新json
列類型,因此得到以下錯誤:
PG::UndefinedObject: ERROR: type "json" does not exist
謝謝!現在看起來很明顯,但將Slack和關鍵依賴混合的「addon」聲明混合確實感覺很奇怪。 –