.travis.yml 1.15 KB
Newer Older
Jon Pugh's avatar
Jon Pugh committed
1 2 3 4 5 6 7 8
language: generic

sudo: required

env:
  globaL:
    - DOCKER_VERSION=1.11.2-0~trusty
    - DOCKER_COMPOSE_VERSION=1.7.1
9
    - AEGIR_HOSTING_VERSION=7.x-3.x
10
    - AEGIR_TESTS_VERSION=master
Jon Pugh's avatar
Jon Pugh committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

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

addons:
  hosts:
    - aegir.travis
    - sitetest.aegir.travis

services:
  - docker

before_install:
28 29
  # Show travis build dir variable.
  - echo $TRAVIS_BUILD_DIR
Jon Pugh's avatar
Jon Pugh committed
30 31

  # Get test scripts
32 33 34
  - 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
Jon Pugh's avatar
Jon Pugh committed
35

helmo's avatar
helmo committed
36 37 38 39
  # Get Hosting
  - git clone http://git.drupal.org/project/hosting.git /home/travis/build/aegir-project/hosting
  - cd /home/travis/build/aegir-project/hosting
  - git checkout $AEGIR_HOSTING_VERSION
Jon Pugh's avatar
Jon Pugh committed
40 41


helmo's avatar
helmo committed
42 43 44 45
  # Run prepare scripts.
  - cd /home/travis/build/aegir-project/tests/travis
  - sudo bash prepare-docker.sh
  - bash prepare-testenv.sh
Jon Pugh's avatar
Jon Pugh committed
46 47 48

script:

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