diff --git a/.travis.yml b/.travis.yml index af8af4f..3dfc7fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/core.sh b/tests/core.sh deleted file mode 100755 index 521223e..0000000 --- a/tests/core.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -e - -curl -u restadmin:restpass http://172.19.199.2:8001/3.1/system diff --git a/tests/test.sh b/tests/test.sh new file mode 100755 index 0000000..c3bf826 --- /dev/null +++ b/tests/test.sh @@ -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"