-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
46 lines (34 loc) · 958 Bytes
/
.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
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 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.
- sudo docker-compose -f docker-compose-provision.yml run -T -e TERM=xterm hostmaster