Skip to content

Commit 60ee29e

Browse files
author
Rui Marinho
committed
Add .travis.yml
1 parent 61f4b71 commit 60ee29e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
after_script:
2+
- docker images
3+
4+
before_script:
5+
- IMAGE="postgres-plv8:$VERSION"
6+
7+
env:
8+
- VERSION=9.4-1.4
9+
- VERSION=9.4-1.5
10+
- VERSION=9.5-1.4
11+
- VERSION=9.5-1.5
12+
- VERSION=9.6-1.4
13+
- VERSION=9.6-1.5
14+
15+
language: bash
16+
17+
script:
18+
- docker build -t "${IMAGE}" "${VERSION}"
19+
- docker run -d --name postgres "${IMAGE}"
20+
- sleep 3
21+
- 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
22+
- docker exec -it postgres psql -U postgres -c 'CREATE EXTENSION plv8; DO $$ plv8.elog(WARNING, plv8.version) $$ LANGUAGE plv8' | grep "${VERSION#????}"
23+
24+
services: docker

0 commit comments

Comments
 (0)