-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
53 lines (42 loc) · 1.45 KB
/
.travis.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
- AEGIR_PROVISION_VERSION=7.x-3.x
#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
# Get Provision
- git clone http://github.com/aegir-project/provision.git /home/travis/build/aegir-project/provision
- cd /home/travis/build/aegir-project/provision
- git checkout $AEGIR_PROVISION_VERSION
# Run prepare scripts.
- cd /home/travis/build/aegir-project/tests/travis
- sudo bash prepare-docker.sh
- bash prepare-testenv.sh
script:
# Tests are included in the docker-compose.yml file in the tests repo.
# See https://github.com/aegir-project/tests/blob/master/travis/docker-compose-hosting.yml for the docker setup.
# See https://github.com/aegir-project/dockerfiles/blob/master/run-tests.sh for the script that runs the tests.
# See https://github.com/aegir-project/tests for the behat tests.
- sudo docker-compose -f docker-compose-hosting.yml run hostmaster