@@ -18,31 +18,33 @@ before_install:
18
18
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
19
19
20
20
install :
21
- - mysql -e 'create database drupal;'
22
21
- composer global require hirak/prestissimo
23
22
- composer global require drush/drush:8.x-dev drupal/coder mglaman/drupal-check friendsoftwig/twigcs
24
23
- export PATH="$HOME/.config/composer/vendor/bin:$PATH"
25
24
- phpcs --config-set installed_paths ../../drupal/coder/coder_sniffer
26
- - echo 'sendmail_path = /bin/true' > $(php --ini|grep -m 1 "ini files in:"|cut -d ":" -f 2)/sendmail.ini
27
25
- phpenv rehash
28
26
- nvm install node
29
27
- nvm use node
30
28
- npm install --global yarn
31
- - cd ../ && drush dl drupal-8 -- drupal-project-rename= drupal
29
+ - cd ../ && composer create-project drupal-composer/ drupal-project:8.x-dev drupal --no-interaction
32
30
- cd drupal
33
- - DRUPAL_ROOT=$(pwd)
34
- - composer update
31
+ - DRUPAL_ROOT=$(pwd)/web
32
+ - export REPOSITORIES='"repositories":\ \['
33
+ - export REPOSITORIES_REPLACE='"repositories":\[\{"type":"path","url":"..\/os2web_meetings","options":\{"symlink":false\}\},'
34
+ - export REQUIRE='"require":\ {'
35
+ - export REQUIRE_REPLACE='"require":{"os2web\/os2web_logging":"\*",'
36
+ - sed -i "s/$REPOSITORIES/$REPOSITORIES_REPLACE/g" composer.json
37
+ - sed -i "s/$REQUIRE/$REQUIRE_REPLACE/g" composer.json
38
+ - composer update os2web/os2web_logging
39
+ - PROJECT_PATH=$DRUPAL_ROOT/modules/contrib/os2web_logging
35
40
- cd $DRUPAL_ROOT/core
36
41
- yarn install
37
42
- npm install --global eslint-config-drupal-bundle stylelint
38
43
39
44
script :
40
- - cd $OS2WEB_PATH
41
- - phpcs --standard=Drupal --ignore=*.md ./
42
- - twigcs $OS2WEB_PATH
45
+ - phpcs --standard=Drupal --ignore=*.md $PROJECT_PATH
46
+ - twigcs $PROJECT_PATH
43
47
- cd $DRUPAL_ROOT/core
44
- - eslint $DRUPAL_ROOT/modules/contrib/os2web_logging
45
- - stylelint --aei $DRUPAL_ROOT/modules/contrib/os2web_logging/**/*.css
46
- - drupal-check $DRUPAL_ROOT/profiles
47
- - cd $DRUPAL_ROOT
48
- - drush si standard --db-url=mysql://root:@127.0.0.1/drupal --yes
48
+ - eslint $PROJECT_PATH
49
+ - stylelint --aei $PROJECT_PATH/**/*.css
50
+ - drupal-check $PROJECT_PATH
0 commit comments