Trying out travis-configuration.

- Make core.sh executable.

- Check the IP Address of containers in travis.

- Wait for the services to come up before running tests.
This commit is contained in:
Abhilash Raj
2017-04-18 08:52:18 -07:00
committed by Abhilash Raj
parent aa367a2495
commit cde320477c
2 changed files with 30 additions and 0 deletions

26
.travis.yml Normal file
View File

@@ -0,0 +1,26 @@
sudo: required
services:
- docker
language: python
install:
- docker --version
- docker build -t maxking/mailman-core core/
- docker build -t maxking/mailman-web web/
- sudo pip install docker-compose
- docker-compose --version
before_script:
- docker-compose up -d
- docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mailman-core
- docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mailman-web
- docker-compose ps
- sleep 30
script:
- tests/core.sh
after_script:
- docker-compose down

4
tests/core.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
set -e
curl -u restadmin:restpass http://172.19.199.2:8001/3.1/system