2012-07-12 12:01:54 +08:00
language : node_js
2016-12-11 07:16:51 +08:00
sudo : false
2016-08-23 11:35:41 +08:00
dist : trusty
2014-11-19 04:01:07 +08:00
before_script :
2018-05-24 00:06:52 +08:00
- node script/create-test-tables.js pg://postgres@127.0.0.1:$PGPORT/postgres
2014-11-11 22:42:46 +08:00
env :
2015-10-08 00:11:53 +08:00
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres
2015-04-04 22:26:21 +08:00
2018-05-24 00:06:52 +08:00
env :
- POSTGRESQL_VERSION="9.5"
- POSTGRESQL_VERSION="10"
node_js :
- "6"
- "8"
before_install :
- sudo service postgresql stop;
- sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests postgresql-$POSTGRESQL_VERSION postgresql-client-$POSTGRESQL_VERSION postgresql-server-dev-$POSTGRESQL_VERSION
- echo -e "# TYPE DATABASE USER ADDRESS METHOD \nlocal all postgres trust\nlocal all all trust\nhost all all 127.0.0.1/32 trust" | sudo tee /etc/postgresql/$POSTGRESQL_VERSION/main/pg_hba.conf
- export PGPORT=`grep ^port /etc/postgresql/$POSTGRESQL_VERSION/main/postgresql.conf | awk '{print $3}'`
- export PGUSER=postgres
- export PGDATABASE=postgres
- sudo service postgresql restart $POSTGRESQL_VERSION;
2015-09-21 12:00:57 +08:00