This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
forked from ankane/pghero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (67 loc) · 2.19 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
dist: bionic
language: ruby
jobs:
include:
- name: "Postgres 13"
rvm: 2.7
gemfile: Gemfile
dist: focal
addons:
postgresql: "13"
apt:
sources:
- sourceline: deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main 13
key_url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
packages:
- postgresql-13
before_install:
- echo "shared_preload_libraries = 'pg_stat_statements'" | sudo tee -a /etc/postgresql/13/main/postgresql.conf
- sudo systemctl restart postgresql@13-main
- createdb pghero_test
env:
- PGPORT=5433
- name: "Postgres 12"
rvm: 2.7
gemfile: Gemfile
dist: focal
addons:
postgresql: "12"
apt:
packages:
- postgresql-12
before_install:
- echo "shared_preload_libraries = 'pg_stat_statements'" | sudo tee -a /etc/postgresql/12/main/postgresql.conf
- sudo systemctl restart postgresql@12-main
- createdb pghero_test
- name: "Postgres 11"
rvm: 2.6
gemfile: test/gemfiles/activerecord52.gemfile
addons:
postgresql: "11"
before_install:
- echo "shared_preload_libraries = 'pg_stat_statements'" | sudo tee -a /etc/postgresql/11/main/postgresql.conf
- sudo systemctl restart postgresql@11-main
- createdb pghero_test
- name: "Postgres 10"
rvm: 2.5
gemfile: test/gemfiles/activerecord51.gemfile
addons:
postgresql: "10"
before_install:
- echo "shared_preload_libraries = 'pg_stat_statements'" | sudo tee -a /etc/postgresql/10/main/postgresql.conf
- sudo systemctl restart postgresql@10-main
- createdb pghero_test
- name: "Postgres 9.6"
rvm: 2.4
gemfile: test/gemfiles/activerecord50.gemfile
addons:
postgresql: "9.6"
before_install:
- echo "shared_preload_libraries = 'pg_stat_statements'" | sudo tee -a /etc/postgresql/9.6/main/postgresql.conf
- sudo systemctl restart [email protected]
- createdb pghero_test
script: bundle exec rake test
notifications:
email:
on_success: never
on_failure: change