.travis.yml 941 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
language: generic

sudo: required

# Only run test when committing to master branch.
branches:
  only:
    - 7.x-3.x

env:
  global:
    - AEGIR_HOSTING_VERSION=7.x-3.x
    - AEGIR_TESTS_VERSION=master

#env:
#  - test: Ubuntu 14.04 Apache
#    distribution: ubuntu
#    version: 14.04
#    init: /sbin/init
#    run_opts: ""

addons:
  hosts:
    - aegir.local.computer
    - sitetest.aegir.local.computer

services:
  - docker


before_install:

  # Get test scripts
  - git clone http://github.com/aegir-project/tests.git /home/travis/build/aegir-project/tests
  - cd /home/travis/build/aegir-project/tests
  - git checkout $AEGIR_TESTS_VERSION

helmo's avatar
helmo committed
38
  # Run prepare scripts.
helmo's avatar
helmo committed
39
  - cd /home/travis/build/aegir-project/tests/travis
40
  - sudo bash prepare-docker.sh
helmo's avatar
helmo committed
41
  - bash prepare-testenv.sh
42 43 44 45

script:

  # Tests are included in the docker-compose.yml file in the tests repo.
helmo's avatar
helmo committed
46
  - sudo docker-compose -f docker-compose-provision.yml run hostmaster