This repository has been archived by the owner on Nov 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
/
.travis.yml
69 lines (56 loc) · 1.91 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
66
67
68
69
dist: trusty
language: php
cache:
bundler: true
directories:
- "$HOME/.composer/cache"
- "$HOME/.drush/cache"
- "$HOME/.npm"
php:
- '7.2'
env:
- TEST_TAGS=lightning PROFILE_NAME=lightning
- TEST_TAGS=~search PROFILE_NAME=lightning_extender
addons:
chrome: stable
before_install:
- phpenv config-rm xdebug.ini
- phpenv config-add .travis-ci/travis.php.ini
- phpenv rehash
- composer self-update
- composer --version
install:
# Add Composer's local bin directory to the PATH so that we will be running
# our installed versions of Drush, PHPCS, Behat, PhantomJS, etc.
- export PATH="$HOME/.composer/vendor/bin:$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
# Add dev dependencies that shouldn't be shipped to implementors and build the
# Lightning code base.
- composer require --dev drupal/drupal-extension:^3.4 drupal/media_entity_generic:^1.0 vaimo/binary-chromedriver --no-update
- composer install
# Symlink the sub-profile into the main profiles directory.
- ln -s lightning/tests/lightning_extender docroot/profiles/contrib
# Install Lightning.
- drush site:install $PROFILE_NAME --yes --db-url sqlite:https://db.sqlite
# Remove certain installation artifacts.
- rm -r -f docroot/modules/contrib
- rm -r -f docroot/profiles/contrib/lightning
- rm -r -f vendor
- rm composer.lock
# Update code base to HEAD.
- composer require acquia/lightning:dev-8.x-4.x --no-update
# Workaround until Issue #3091285 is resolved.
- chmod -R +w docroot/sites/default
- composer update
# Run database and Lightning config updates.
- drush updatedb --yes
- drush update:lightning --no-interaction
- drush cache-rebuild
- drush pm-uninstall --yes history
- drush config:set --yes system.theme default bartik
before_script:
- drush runserver --default-server=builtin --quiet 8080 &
- chromedriver --port=4444 &
script:
- behat --strict --tags=${TEST_TAGS}
matrix:
fast_finish: true