Skip to content

Commit 4ab7967

Browse files
committed
Fixing travis builds
1 parent b9f0512 commit 4ab7967

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.travis.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,33 @@ before_install:
1818
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
1919

2020
install:
21-
- mysql -e 'create database drupal;'
2221
- composer global require hirak/prestissimo
2322
- composer global require drush/drush:8.x-dev drupal/coder mglaman/drupal-check friendsoftwig/twigcs
2423
- export PATH="$HOME/.config/composer/vendor/bin:$PATH"
2524
- 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
2725
- phpenv rehash
2826
- nvm install node
2927
- nvm use node
3028
- 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
3230
- 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
3540
- cd $DRUPAL_ROOT/core
3641
- yarn install
3742
- npm install --global eslint-config-drupal-bundle stylelint
3843

3944
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
4347
- 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

Comments
 (0)