forked from drupalnorge/drupalno-2018
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (29 loc) · 940 Bytes
/
.travis.yml
File metadata and controls
34 lines (29 loc) · 940 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
32
33
34
language: php
php:
- 7.4
sudo: false
services:
- mysql
mysql:
database: test
username: root
encoding: utf8
before_install:
- composer self-update --verbose --2
- composer --version
- export COMPOSER_MEMORY_LIMIT=-1
- export COMPOSER_EXIT_ON_PATCH_FAILURE=1
- mysql -e "create database IF NOT EXISTS test;"
- wget --no-check-certificate https://www.drupal.no/sanitized.db
install:
- composer install
- cd ${TRAVIS_BUILD_DIR}/web/themes/drupal_nl && ./build.sh && rm -rf node_modules && cd ${TRAVIS_BUILD_DIR}/web
- touch sites/default/settings.local.php
- ./../vendor/drush/drush/drush si minimal --verbose --yes --db-url=mysql://root@127.0.0.1/test
script:
- cd ${TRAVIS_BUILD_DIR}/web
- ./../vendor/drush/drush/drush sql-cli < ../sanitized.db
- ./../vendor/drush/drush/drush cr
- ./../vendor/drush/drush/drush updb -y
- ./../vendor/drush/drush/drush cim -y
- ./../vendor/drush/drush/drush cr