plex-test/.drone.yml

24 lines
534 B
YAML
Raw Normal View History

2017-06-30 15:39:55 +00:00
services:
docker:
image: docker:dind
privileged: true
2017-06-29 21:42:35 +00:00
pipeline:
build:
image: docker
2017-06-30 15:39:55 +00:00
environment:
- DOCKER_HOST=tcp://docker:2375
2017-06-29 21:42:35 +00:00
commands:
2017-06-30 15:39:55 +00:00
- docker build -t devbuild .
2017-06-29 21:42:35 +00:00
test:
image: docker
2017-06-30 15:39:55 +00:00
environment:
- DOCKER_HOST=tcp://docker:2375
2017-06-29 21:42:35 +00:00
commands:
2017-06-30 15:47:02 +00:00
- apk add --no-cache curl
2017-06-30 15:39:55 +00:00
- docker run --name=DEV -d -p 32400:32400 devbuild
- sleep 10 # Wait for plex to start!
2017-06-30 15:47:02 +00:00
- curl -s 127.0.0.1:32400 > /dev/null # Check if its responding, a 401 here is expected
2017-06-30 15:39:55 +00:00