Merge pull request #761 from sehrope/travis-matrix
Add node/PG version matrix to Travis-CI config
This commit is contained in:
commit
715e5009dd
44
.travis.yml
44
.travis.yml
@ -1,9 +1,45 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.10"
|
||||
- "0.12"
|
||||
- "iojs"
|
||||
sudo: false
|
||||
before_script:
|
||||
- node script/create-test-tables.js pg://postgres@127.0.0.1:5432/postgres
|
||||
env:
|
||||
- PGUSER=postgres PGDATABASE=postgres
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- node_js: "0.10"
|
||||
addons:
|
||||
postgresql: "9.1"
|
||||
- node_js: "0.10"
|
||||
addons:
|
||||
postgresql: "9.2"
|
||||
- node_js: "0.10"
|
||||
addons:
|
||||
postgresql: "9.3"
|
||||
- node_js: "0.10"
|
||||
addons:
|
||||
postgresql: "9.4"
|
||||
- node_js: "0.12"
|
||||
addons:
|
||||
postgresql: "9.1"
|
||||
- node_js: "0.12"
|
||||
addons:
|
||||
postgresql: "9.2"
|
||||
- node_js: "0.12"
|
||||
addons:
|
||||
postgresql: "9.3"
|
||||
- node_js: "0.12"
|
||||
addons:
|
||||
postgresql: "9.4"
|
||||
- node_js: "iojs-v2"
|
||||
addons:
|
||||
postgresql: "9.1"
|
||||
- node_js: "iojs-v2"
|
||||
addons:
|
||||
postgresql: "9.2"
|
||||
- node_js: "iojs-v2"
|
||||
addons:
|
||||
postgresql: "9.3"
|
||||
- node_js: "iojs-v2"
|
||||
addons:
|
||||
postgresql: "9.4"
|
||||
|
@ -1,20 +0,0 @@
|
||||
#! /usr/bin/env bash
|
||||
#sudo cat /etc/postgresql/9.1/main/pg_hba.conf
|
||||
#sudo cat /etc/postgresql/9.1/main/pg_ident.conf
|
||||
#sudo cat /etc/postgresql/9.1/main/postgresql.conf
|
||||
sudo /etc/init.d/postgresql stop
|
||||
sudo apt-get -y --purge remove postgresql
|
||||
echo "yes" | sudo add-apt-repository ppa:pitti/postgresql
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get -q -y -o Dpkg::Options::=--force-confdef install postgresql-9.2 postgresql-contrib-9.2
|
||||
sudo chmod 777 /etc/postgresql/9.2/main/pg_hba.conf
|
||||
sudo echo "local all postgres trust" > /etc/postgresql/9.2/main/pg_hba.conf
|
||||
sudo echo "local all all trust" >> /etc/postgresql/9.2/main/pg_hba.conf
|
||||
sudo echo "host all all 127.0.0.1/32 trust" >> /etc/postgresql/9.2/main/pg_hba.conf
|
||||
sudo echo "host all all ::1/128 trust" >> /etc/postgresql/9.2/main/pg_hba.conf
|
||||
sudo echo "host all all 0.0.0.0/0 trust" >> /etc/postgresql/9.2/main/pg_hba.conf
|
||||
sudo echo "host all all 0.0.0.0 255.255.255.255 trust" >> /etc/postgresql/9.2/main/pg_hba.conf
|
||||
sudo /etc/init.d/postgresql restart
|
||||
# for some reason both postgres 9.1 and 9.2 are started
|
||||
# 9.2 is running on port 5433
|
||||
node script/create-test-tables.js postgres://postgres@localhost:5433/postgres
|
Loading…
Reference in New Issue
Block a user