forked from bluet/docker-cronicle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (22 loc) · 1.07 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
sudo: required
language: bash
services:
- docker
install:
- docker build -t intelliops/cronicle:latest -f Dockerfile .
- docker build -t intelliops/cronicle-letsencrypt:latest -f Dockerfile.letsencrypt .
- docker build -t intelliops/cronicle-s3:latest -f Dockerfile.s3 .
- docker run --name cronicle -d -p 127.0.0.1:3012:3012 intelliops/cronicle:latest
- docker run --name cronicle-letsencrypt -d -p 127.0.0.1:4012:3012 intelliops/cronicle-letsencrypt:latest
- docker run --name cronicle-s3 -d -p 127.0.0.1:5012:3012 intelliops/cronicle-s3:latest
script:
- docker ps -a
- sleep 20
- docker exec cronicle /bin/ash -c "cat /opt/cronicle/conf/config.json"
- docker exec cronicle-letsencrypt /bin/ash -c "cat /opt/cronicle/conf/config.json"
- docker exec cronicle-s3 /bin/ash -c "cat /opt/cronicle/conf/config.json"
- curl http://localhost:3012 | grep LICENSE
- curl http://localhost:4012 | grep LICENSE
- curl http://localhost:5012 | grep LICENSE
- docker stop cronicle cronicle-letsencrypt cronicle-s3
- docker rm -f cronicle cronicle-letsencrypt cronicle-s3