Merge pull request #41 from maxking/dev

Improve testing and push to docker hub only if testing succeeds.
This commit is contained in:
Abhilash Raj
2017-05-28 19:52:49 -07:00
committed by GitHub
3 changed files with 15 additions and 6 deletions

View File

@@ -23,8 +23,10 @@ before_script:
- docker logs mailman-core
script:
- tests/core.sh
- sh tests/test.sh
after_success:
- sh .travis/deploy_dockerhub.sh
after_script:
- docker-compose down
- sh .travis/deploy_dockerhub.sh

View File

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

11
tests/test.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -e
# Check to see if the core is up.
curl -u restadmin:restpass http://172.19.199.2:8001/3.1/system
# Check to see if postorius is working.
curl -L http://172.19.199.3:8000/postorius/lists | grep "Mailing List"
# Check to see if hyperkitty is working.
curl -L http://172.19.199.3:8000/hyperkitty/ | grep "Available lists"