Commit fcbb79bb authored by helmo's avatar helmo Committed by Jon Pugh

Adding .travis.yml to provision repository (#2)

* Adding .travis.yml to provision repository

Copy from https://github.com/aegir-project/hosting/pull/1

* fix typo
* temp add debug line to get some version info
* Only run Travis CI test once for a PR
* Update DOCKER_VERSION to patch new images on travis
* Sync up with travis file from hostmaster
* changing hostnames
* use provision specific docker compose file.
* Adding an intentional failure to test travis failure.
* Revert "Adding an intentional failure to test travis failure."
parent 3649983c
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
# Run docker prepare script.
- cd /home/travis/build/aegir-project/tests/travis
- sudo bash prepare-docker.sh
# Get aegir/hostmaster and database images.
- sudo docker pull aegir/hostmaster:local
- sudo docker pull mariadb
script:
# Tests are included in the docker-compose.yml file in the tests repo.
- sudo docker-compose -f docker-compose-provision.yml run hostmaster --rm
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment