mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-25 16:03:13 +00:00
* Add CI build environment scripts * Update Travis configuration * Don't publish CI scripts to npm * Add Node.js 12 to CI matrix
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
language: node_js
|
|
sudo: true
|
|
dist: trusty
|
|
|
|
before_script:
|
|
- node script/create-test-tables.js pg://postgres@127.0.0.1:5432/postgres
|
|
|
|
before_install:
|
|
- if [ $TRAVIS_OS_NAME == "linux" ]; then
|
|
if [[ $(node -v) =~ v[1-9][0-9] ]]; then
|
|
source ./ci_scripts/build.sh;
|
|
fi
|
|
fi
|
|
|
|
env:
|
|
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres
|
|
|
|
matrix:
|
|
include:
|
|
- node_js: "lts/boron"
|
|
addons:
|
|
postgresql: "9.6"
|
|
- node_js: "lts/argon"
|
|
addons:
|
|
postgresql: "9.6"
|
|
- node_js: "10"
|
|
addons:
|
|
postgresql: "9.6"
|
|
- node_js: "12"
|
|
addons:
|
|
postgresql: "9.6"
|
|
- node_js: "lts/carbon"
|
|
addons:
|
|
postgresql: "9.1"
|
|
dist: precise
|
|
- node_js: "lts/carbon"
|
|
addons:
|
|
postgresql: "9.2"
|
|
- node_js: "lts/carbon"
|
|
addons:
|
|
postgresql: "9.3"
|
|
- node_js: "lts/carbon"
|
|
addons:
|
|
postgresql: "9.4"
|
|
- node_js: "lts/carbon"
|
|
addons:
|
|
postgresql: "9.5"
|
|
- node_js: "lts/carbon"
|
|
addons:
|
|
postgresql: "9.6"
|