Sha256: 9aa5d2144abe7d690cb97044a612936abd26fb0e830cf09ea9f7d75bc022d4e7

Contents?: true

Size: 891 Bytes

Versions: 1

Compression:

Stored size: 891 Bytes

Contents

---
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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taperole-1.6.0 vendor/Stouts.backup/.travis.yml