forked from geerlingguy/drupal-vm
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
65 lines (56 loc) · 1.84 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
---
language: php
php: 7.2
services: docker
env:
global:
- CONFIG: tests/config.yml
MAKEFILE: example.drupal.make.yml
COMPOSERFILE: example.drupal.composer.json
HOSTNAME: drupalvm.test
MACHINE_NAME: drupalvm
IP: 192.168.88.88
DRUPALVM_DIR: /var/www/drupalvm
DRUSH_BIN: drush
TEST_INSTALLED_EXTRAS: true
CONTAINER_ID: dvm-test
matrix:
# Defaults - Ubuntu 18.04.
- type: defaults
distro: ubuntu1804
# Defaults - Debian 9.
- type: debian
distro: debian9
# Defaults - CentOS 7.
- type: centos
distro: centos7
local_config: tests/centos-7.config.yml
# PHP 7.3 - Ubuntu 18.04.
- type: defaults
distro: ubuntu1804
local_config: tests/ubuntu-18-php73.config.yml
DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/bin/drush"
TEST_INSTALLED_EXTRAS: false
# Nginx and Drush make file test - Ubuntu 16.04.
# - type: nginx-drush-make
# distro: ubuntu1604
# local_config: tests/ubuntu-16-nginx-drush-make.config.yml
# config_dir: /var/www/drupalvm/config
# TODO: See https://github.com/geerlingguy/drupal-vm/issues/1675
# PostgreSQL - Ubuntu 16.04.
# - type: postgresql
# distro: ubuntu1604
# local_config: tests/ubuntu-16-postgresql.config.yml
# config_dir: /var/www/drupalvm/config
# DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/bin/drush"
# TEST_INSTALLED_EXTRAS: false
before_install:
# Pull container.
- docker pull geerlingguy/docker-${distro}-ansible:latest
# Install lint tools.
- gem install rubocop
script:
# Vagrantfile syntax check.
- 'rubocop ./Vagrantfile ./lib/drupalvm --except Metrics/LineLength,Security/Eval,Style/MutableConstant,Metrics/BlockLength,Metrics/MethodLength,Style/ConditionalAssignment,Style/IfUnlessModifier'
# Run tests.
- composer run-tests