Skip to content

Commit 9e4156d

Browse files
committed
Added Travis CI tests
1 parent 549e687 commit 9e4156d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.travis.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
services:
2+
- docker
3+
4+
addons:
5+
hosts:
6+
- mkdocs
7+
8+
before_install:
9+
- docker --version
10+
- docker pull alpine:latest
11+
12+
script:
13+
# Build Image
14+
- docker build -t polinux/mkdocs .
15+
16+
#
17+
# Test daemon mode (default settings)
18+
#
19+
- docker run -d --cap-add NET_ADMIN -p 8000:8000 --name mkdocs polinux/mkdocs && sleep 10
20+
21+
# Test direct request to Nginx
22+
- curl -sSLi http://mkdocs:8000 | grep '200 OK'
23+

0 commit comments

Comments
 (0)