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:
committed by
Abhilash Raj
parent
aa367a2495
commit
cde320477c
26
.travis.yml
Normal file
26
.travis.yml
Normal 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
4
tests/core.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
curl -u restadmin:restpass http://172.19.199.2:8001/3.1/system
|
||||
Reference in New Issue
Block a user