Added new Travis CI tests
This commit is contained in:
parent
8089efd861
commit
b387a16715
45
.travis.yml
45
.travis.yml
|
@ -37,6 +37,7 @@ before_install:
|
||||||
- sudo ln -s ${PWD} /etc/ansible/roles/greendayonfire.mongodb
|
- sudo ln -s ${PWD} /etc/ansible/roles/greendayonfire.mongodb
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
# Test 1
|
||||||
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION}
|
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION}
|
||||||
# Idempotence test
|
# Idempotence test
|
||||||
- >
|
- >
|
||||||
|
@ -48,3 +49,47 @@ script:
|
||||||
# Delete all containers
|
# Delete all containers
|
||||||
- sudo docker kill mongo{1,2,3} && docker rm mongo{1,2,3}
|
- sudo docker kill mongo{1,2,3} && docker rm mongo{1,2,3}
|
||||||
|
|
||||||
|
# Test 2
|
||||||
|
- >
|
||||||
|
sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1
|
||||||
|
-e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
|
||||||
|
# Idempotence test
|
||||||
|
- >
|
||||||
|
sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1
|
||||||
|
-e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
|
||||||
|
| grep -q 'changed=0.*failed=0'
|
||||||
|
&& (echo 'Idempotence test: pass' && exit 0)
|
||||||
|
|| (echo 'Idempotence test: fail' && exit 1)
|
||||||
|
|
||||||
|
# Delete all containers
|
||||||
|
- sudo docker kill mongo{1,2,3} && docker rm mongo{1,2,3}
|
||||||
|
|
||||||
|
# Test 3
|
||||||
|
- >
|
||||||
|
sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
|
||||||
|
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
|
||||||
|
# Idempotence test
|
||||||
|
- >
|
||||||
|
sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
|
||||||
|
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
|
||||||
|
| grep -q 'changed=0.*failed=0'
|
||||||
|
&& (echo 'Idempotence test: pass' && exit 0)
|
||||||
|
|| (echo 'Idempotence test: fail' && exit 1)
|
||||||
|
|
||||||
|
# Delete all containers
|
||||||
|
- sudo docker kill mongo{1,2,3} && docker rm mongo{1,2,3}
|
||||||
|
|
||||||
|
# Test 4
|
||||||
|
- >
|
||||||
|
sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
|
||||||
|
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
|
||||||
|
-e mongodb_security_authorization='enabled'
|
||||||
|
# Idempotence test
|
||||||
|
- >
|
||||||
|
sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
|
||||||
|
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
|
||||||
|
-e mongodb_security_authorization='enabled'
|
||||||
|
| grep -q 'changed=0.*failed=0'
|
||||||
|
&& (echo 'Idempotence test: pass' && exit 0)
|
||||||
|
|| (echo 'Idempotence test: fail' && exit 1)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ galaxy_info:
|
||||||
- name: Debian
|
- name: Debian
|
||||||
versions:
|
versions:
|
||||||
- wheezy
|
- wheezy
|
||||||
- jessie
|
|
||||||
categories:
|
categories:
|
||||||
- database
|
- database
|
||||||
- database:nosql
|
- database:nosql
|
||||||
|
|
Loading…
Reference in New Issue