forked from geerlingguy/drupal-vm
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
55 lines (48 loc) · 1.47 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
---
language: php
php: 7.4
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 10.
- type: debian
distro: debian10
# Defaults - CentOS 8.
- type: centos
distro: centos8
local_config: tests/centos-8.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
# PostgreSQL - Ubuntu 18.04.
- type: postgresql
distro: ubuntu1804
local_config: tests/ubuntu-18-postgresql.config.yml
DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/bin/drush"
config_dir: /var/www/drupalvm/config
TEST_INSTALLED_EXTRAS: false
before_install:
# 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