-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 1.35 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
language: php
sudo: false
php:
- 7.2
services:
- mysql
mysql:
database: drupal
username: root
encoding: utf8
before_install:
- OS2WEB_PATH=$(pwd);
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
install:
- mysql -e 'create database drupal;'
- composer global require hirak/prestissimo
- composer global require drush/drush:8.x-dev drupal/coder mglaman/drupal-check friendsoftwig/twigcs
- export PATH="$HOME/.config/composer/vendor/bin:$PATH"
- phpcs --config-set installed_paths ../../drupal/coder/coder_sniffer
- echo 'sendmail_path = /bin/true' > $(php --ini|grep -m 1 "ini files in:"|cut -d ":" -f 2)/sendmail.ini
- phpenv rehash
- nvm install node
- nvm use node
- npm install --global yarn
- cd ../ && drush dl drupal-8 --drupal-project-rename=drupal
- cd drupal
- DRUPAL_ROOT=$(pwd)
- composer update
- cd $DRUPAL_ROOT/core
- yarn install
- npm install --global eslint-config-drupal-bundle stylelint
script:
- cd $OS2WEB_PATH
- phpcs --standard=Drupal --ignore=*.md ./
- twigcs $OS2WEB_PATH
- cd $DRUPAL_ROOT/core
- eslint $DRUPAL_ROOT/modules/contrib/os2web_meetings
- stylelint --aei $DRUPAL_ROOT/modules/contrib/os2web_meetings/**/*.css
- drupal-check $DRUPAL_ROOT/profiles
- cd $DRUPAL_ROOT
- drush si standard --db-url=mysql://root:@127.0.0.1/drupal --yes