-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
80 lines (59 loc) · 2.08 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
language: php
sudo: required
# Only run tests when committing to our primary branch and pull requests.
branches:
only:
- master
env:
global:
- ANSIBLE_ROLE_NAME=opendevshop.aegir-user
- DEVSHOP_VERSION=1.x
- SITE_HOSTS='dev.drup.devshop.travis dev.projectname.devshop.travis live.projectname.devshop.travis testenv.drpl8.devshop.travis dev.rootproject.devshop.local.computer'
matrix:
- test="Ansible on Ubuntu 14.04 Apache"
COMMAND="bin/robo up --mode=install.sh --test"
- test="Ansible on Ubuntu 16.04 Apache"
COMMAND='bin/robo up --mode=install.sh --install-sh-image=geerlingguy/docker-ubuntu1604-ansible --test'
# - test="Install with Ansible on Ubuntu 14.04 with NGINX"
# COMMAND="robo up --mode=install.sh --test --install-sh-options='--server-webserver=nginx'"
# - test="Ubuntu 18.04 Apache"
# COMMAND='bin/robo up --mode=install.sh --install-sh-image=geerlingguy/docker-ubuntu1804-ansible --test'
# - test="Ansible Install on CentOS 7"
# COMMAND="bin/robo up --mode=install.sh --install-sh-image=geerlingguy/docker-centos7-ansible --test"
# - test="Install with Ansible on Fedora 25"
# COMMAND="robo up --mode=install.sh --install-sh-image=centos:7 --test"
addons:
hosts:
- devshop.travis
- dev.projectname.devshop.travis
- live.projectname.devshop.travis
- dev.drpl8.devshop.travis
- testenv.drpl8.devshop.travis
- dev.rootproject.devshop.local.computer
services:
- docker
before_install:
- env
- id -u
- docker --version
- docker-compose --version
# Clone devshop
- cd ..
- git clone http://github.com/opendevshop/devshop
- cd devshop
- git checkout $DEVSHOP_VERSION
# Prepare devshop CLI.
- composer install
script:
# Run robo p:s to scaffold roles
- bin/robo p:s -n
- ls -la
- cp -rf $TRAVIS_BUILD_DIR/* roles/$ANSIBLE_ROLE_NAME
# Copy this role into the /roles folder
# Launch devshop including preparing the source code.
- echo "Running ${COMMAND} -n --xdebug=0 ..."
- ${COMMAND} -n --disable-xdebug
notifications:
slack: thinkdrop:pb05x3ZL3qumHs0RjqEXvYfA
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/