forked from pyramation/inflection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (31 loc) · 990 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
language: node_js
node_js:
- 12
notifications:
email: false
services:
- docker
env:
global:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- PGPORT=7777
- PGTEMPLATE_DATABASE=testing-template-db
- PGHOST=localhost
- PGPASSWORD=password
- PGUSER=postgres
- APP_USER=app_user
- APP_PASSWORD=app_password
matrix:
- PACKAGE=packages/inflection
before_install:
- yarn install
- docker run -p 7777:5432 -e POSTGRES_PASSWORD=password -e POSTGRES_USER=postgres --name postgres -v `pwd`/bin:/sql-bin -v `pwd`/extensions:/sql-extensions -v `pwd`/packages:/sql-packages -d pyramation/postgis
- sleep 3
- while ! docker exec -it postgres pg_isready -U postgres -h 127.0.0.1; do echo "$(date) - waiting for database to start"; sleep 1; done
- while ! docker exec postgres /sql-bin/install.sh; do echo "installing plugins"; sleep 3; done
- psql -f ./bootstrap-roles.sql postgres
script:
- cd $PACKAGE
- yarn install
- yarn test