Update travis and bundler, and downgrade minimum postgresql

This commit is contained in:
nanaya 2020-03-17 15:58:45 +00:00
parent 9e69e042bf
commit 27ea818e3c
6 changed files with 9 additions and 19 deletions

View File

@ -3,11 +3,14 @@ cache: bundler
language: ruby
rvm:
- 2.6.3
- 2.7.0
services:
- memcached
- postgresql
addons:
postgresql: 11
before_script:
- sudo script/travis_prepare_db
- script/travis_prepare

View File

@ -286,4 +286,4 @@ DEPENDENCIES
will_paginate
BUNDLED WITH
1.17.2
2.1.2

View File

@ -12,8 +12,8 @@ Requirements
As this is ongoing project, there will be more changes on requirement as this project goes. Currently this application is developed using:
* Ruby 2.6
* PostgreSQL 12
* Ruby 2.6+
* PostgreSQL 11+
* Bundler gem
* ImageMagick
* And various other requirement for the gems (check `Gemfile` for the list)

View File

@ -303,8 +303,6 @@ CREATE FUNCTION public.user_logs_touch(new_user_id integer, new_ip inet) RETURNS
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: advertisements; Type: TABLE; Schema: public; Owner: -
--

View File

@ -5,7 +5,7 @@ mkdir -p public/data
cat <<EOF > config/database.yml
test:
adapter: postgresql
port: 5433
port: 5432
username: postgres
database: moebooru_test
EOF

View File

@ -1,11 +0,0 @@
#!/bin/sh
. /etc/lsb-release
echo "deb http://apt.postgresql.org/pub/repos/apt/ ${DISTRIB_CODENAME}-pgdg main" > /etc/apt/sources.list.d/pgdg.list
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
apt-get update
apt-get install -y postgresql-12
cp /etc/postgresql/10/main/pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
pg_ctlcluster 12 main reload