forked from clkao/docker-postgres-plv8
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (23 loc) · 718 Bytes
/
.travis.yml
File metadata and controls
28 lines (23 loc) · 718 Bytes
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
after_script:
- docker images
before_script:
- IMAGE="postgres-plv8:$VERSION"
env:
- VERSION=9.4-1.4
- VERSION=9.4-1.5
- VERSION=9.4-2
- VERSION=9.5-1.4
- VERSION=9.5-1.5
- VERSION=9.5-2
- VERSION=9.6-1.4
- VERSION=9.6-1.5
- VERSION=9.6-2
- VERSION=10-2
language: bash
script:
- docker build -t "${IMAGE}" "${VERSION}"
- docker run -d --name postgres "${IMAGE}"
- 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
- docker exec -it postgres psql -U postgres -c 'CREATE EXTENSION plv8; DO $$ plv8.elog(WARNING, plv8.version) $$ LANGUAGE plv8' | grep "${VERSION#????}"
services: docker