forked from openeuropa/oe_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (31 loc) · 934 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
sudo: required
git:
depth: 1
services:
- docker
- docker-compose
env:
global:
- DOCKER_COMPOSE_VERSION=1.19.0
matrix:
- DRUPAL_VERSION=8.6.x
- DRUPAL_VERSION=8.5.x
- DRUPAL_VERSION=8.5.x-dev
before_install:
- docker-compose build
- docker-compose up --no-start
- docker-compose start
install:
# Temporarily use sudo to overcome permission issues.
- docker-compose exec -u root node npm install
- docker-compose exec -u root node npm run build
- docker-compose exec -u web web composer require drupal/core:$DRUPAL_VERSION
before_script:
- docker-compose exec -u web web ./vendor/bin/run drupal:site-setup
- docker-compose exec -u web web ./vendor/bin/run drupal:site-install
script:
- docker-compose exec -u web web ./vendor/bin/grumphp run
- docker-compose exec -u web web ./vendor/bin/phpunit
- docker-compose exec -u web web ./vendor/bin/behat
notifications:
email: false