forked from tripal/t4d8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·34 lines (28 loc) · 1.24 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
language: php
dist: bionic
services:
- docker
sudo: required
php:
- 7.1
env:
- IMAGE=laceysanderson/drupal8dev_ci:drupal8.8-pgsql DRUPAL_ROOT=/var/www/html/drupal8
- IMAGE=laceysanderson/drupal9dev_ci:drupal9.0.x-php7.3 DRUPAL_ROOT=/var/www/html/drupal9
before_install:
# Get the docker image.
- docker pull $IMAGE
script:
# run drupal container in background mapping apache to port 9000
# and map the current drupal-dev site into the webroot of the container.
- docker run --publish=9000:80 --name=drupaldev_ci -t -i -d $IMAGE
# Start the database
- docker exec drupaldev_ci service postgresql start
- sleep 30 #wait for the database to start
# Copy the current module files into the module directory.
- docker cp ./ drupaldev_ci:$DRUPAL_ROOT/web/modules/t4d8
# Enable the module.
- docker exec --workdir=$DRUPAL_ROOT drupaldev_ci vendor/bin/drush en tripal tripal_chado -y
# Install Chado.
- docker exec --workdir=$DRUPAL_ROOT drupaldev_ci vendor/bin/drush php-eval "\Drupal::service('tripal_chado.chadoInstaller')->install(1.3, 'testchado');"
# Navigate to the Drupal webroot and then run the module tests.
- docker exec --workdir=$DRUPAL_ROOT/web drupaldev_ci ../vendor/bin/phpunit --configuration core modules/t4d8