forked from gajus/slonik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·37 lines (37 loc) · 904 Bytes
/
.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
language: node_js
os: linux
dist: focal
arch: amd64
jobs:
include:
- name: JavaScript driver
node_js: 16
services:
- postgresql
addons:
postgresql: "12"
apt:
packages:
- postgresql-12
- postgresql-client-12
env:
global:
- PGVERSION=12
- PGPORT=5432
script:
- npm install
- npm run lint
- npm run build
- npm run test
after_success:
- NODE_ENV=test nyc npm run test
- nyc check-coverage --lines 50
- nyc report --reporter=text-lcov | coveralls
- npm run build
- semantic-release
notifications:
email: false
before_install:
- sudo sed -i '/^host\s*all/ s/md5/trust/' /etc/postgresql/12/main/pg_hba.conf
- sudo service postgresql restart $PGVERSION;
- until pg_isready -p 5433; do echo 'Waiting for the DB to be up...'; sleep 1; done;