forked from TimWolla/docker-adminer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (25 loc) · 1.33 KB
/
.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
sudo: required
language: bash
env:
- VERSION=4 VARIANT=
services:
- docker
install:
- docker pull buildpack-deps:curl
before_script:
- image="adminer:${VERSION}${VARIANT:+-$VARIANT}"
script:
- docker build -t $image ${VERSION}${VARIANT:+/$VARIANT}
- docker run --name adminer -d $image
- "docker run -i --rm --link adminer:adminer buildpack-deps:curl curl -fsSL http://adminer:8080 |grep '<span class=\"version\">'${VERSION}"
- "! docker run -i --rm --link adminer:adminer buildpack-deps:curl curl -fsSL http://adminer:8080 |grep '<b>Warning</b>:'"
- docker restart adminer
- "docker run -i --rm --link adminer:adminer buildpack-deps:curl curl -fsSL http://adminer:8080 |grep '<span class=\"version\">'${VERSION}"
- docker run --name adminer_design -e ADMINER_DESIGN=nette -d $image
- "docker run -i --rm --link adminer_design:adminer buildpack-deps:curl curl -fsSL http://adminer:8080 |grep 'adminer.css'"
- "docker run -i --rm --link adminer_design:adminer buildpack-deps:curl curl -fsSL http://adminer:8080/adminer.css |grep 'Nette'"
- docker run --name adminer_server -e ADMINER_DEFAULT_SERVER=ADMINER_DEFAULT_SERVER_WORKS -d $image
- "docker run -i --rm --link adminer_server:adminer buildpack-deps:curl curl -fsSL http://adminer:8080 |grep 'ADMINER_DEFAULT_SERVER_WORKS'"
after_script:
- docker ps -a
- docker images