--- language: python python: "2.7" before_install: - sudo apt-get update -qq - sudo apt-get install -qq python-apt python-pycurl install: - pip install ansible>=1.6.0 script: # Prepare tests - echo localhost > inventory # Check syntax - ansible-playbook --syntax-check -i inventory test.yml # First run - ansible-playbook -i inventory test.yml --connection=local --sudo # Second run Idempotence test - > ansible-playbook -i inventory test.yml --connection=local --sudo | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) - sudo /usr/local/bin/duply test backup - test -d /home/travis/test || exit 1 backup_home: /home/travis/backup backup_duplicity_version: 0.6.18-0ubuntu3.5 backup_profiles: - name: test source: /home/travis/build target: file:///home/travis/test