forked from drupal-composer/drupal-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (24 loc) · 815 Bytes
/
.travis.yml
File metadata and controls
32 lines (24 loc) · 815 Bytes
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
sudo: required
language: php
services:
- docker
env:
global:
- SIMPLETEST_DB=mysql://drupal:drupal@db/drupal
- SIMPLETEST_BASE_URL="http://web:80"
before_install:
# Build all containers before installing
- sed "s/^USER_UID=.*/USER_UID=`id -u`/" .env.dist > .env
- docker-compose build
install:
# Install Composer managed dependencies
- docker-compose run php-cli composer --verbose install
before_script:
# Start the web container
- docker-compose up -d web
script:
- curl -I localhost
- docker-compose run php-cli composer run-script --timeout=0 tests
- docker-compose run -w /var/www/html/web php-cli drush site-install --verbose --yes
- docker-compose run -w /var/www/html/web php-cli drush status
- docker-compose run -w /var/www/html/web php-cli drupal site:status