Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update db-setup.yml #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions db-setup.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
dist: bionic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how a potential conflict will be resolved here. Is it the build env that appears last in the file, i.e. dependent on where the shared config is injected? Depending on how this works, it may break other apps that rely on a different version of the build environment. This may not be a big deal to fix though.

@DamianSzymanski Have you tried these changes in isolation on any of the apps that inject this config to make sure it works?


addons:
postgresql: "11.6"
postgresql: "11"

services:
- postgresql

before_install:
- sudo apt-get update
- sudo apt-get --yes remove postgresql\*
- sudo apt-get install -y postgresql-11 postgresql-client-11
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
- sudo service postgresql restart 11
- 'gem update --system'

before_script:
- psql --version
- psql -c 'CREATE DATABASE travis_test;' -U postgres
- psql -c 'CREATE ROLE travis SUPERUSER LOGIN CREATEDB;' -U postgres
- curl -fs https://raw.githubusercontent.com/travis-ci/travis-migrations/master/db/main/structure.sql | psql travis_test