Skip to content

Commit c049cc8

Browse files
committed
Cleanup
1 parent e08f66c commit c049cc8

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.travis.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ before_install:
1818

1919
install:
2020
- mysql -e 'create database drupal;'
21-
- composer global require drush/drush:8.x-dev
22-
- composer global require drupal/coder
23-
- composer global require mglaman/drupal-check
24-
- composer global require friendsoftwig/twigcs
21+
- composer global require drush/drush:8.x-dev drupal/coder mglaman/drupal-check friendsoftwig/twigcs
2522
- export PATH="$HOME/.config/composer/vendor/bin:$PATH"
2623
- phpcs --config-set installed_paths ../../drupal/coder/coder_sniffer
2724
- echo 'sendmail_path = /bin/true' > $(php --ini|grep -m 1 "ini files in:"|cut -d ":" -f 2)/sendmail.ini
2825
- phpenv rehash
26+
- nvm install node
27+
- nvm use node
28+
- npm install --global yarn
2929
- composer create-project drupal-composer/drupal-project:8.x-dev ../drupal --no-interaction
3030
- cd ../drupal
3131
# See definition of variabled in Travis CI config.
@@ -36,13 +36,18 @@ install:
3636
- sed -i "s/$REPOSITORIES/$REPOSITORIES_REPLACE/g" composer.json
3737
- sed -i "s/$REQUIRE/$REQUIRE_REPLACE/g" composer.json
3838
- composer update
39-
- cd web
40-
- DRUAPL_ROOT=$(pwd)
39+
- DRUPAL_ROOT=$(pwd)/web
40+
- cd $DRUPAL_ROOT/core
41+
- yarn install
42+
- npm install --global eslint-config-drupal-bundle stylelint
4143

4244
script:
4345
- cd $OS2WEB_PATH
4446
- phpcs --standard=Drupal --ignore=*.md ./
45-
- drupal-check $DRUAPL_ROOT/profiles
4647
- twigcs $OS2WEB_PATH
47-
- cd $DRUAPL_ROOT
48+
- cd $DRUPAL_ROOT/core
49+
- eslint $DRUPAL_ROOT/modules/contrib/os2forms
50+
- stylelint --aei $DRUPAL_ROOT/modules/contrib/os2forms/**/*.css
51+
- drupal-check $DRUPAL_ROOT/profiles
52+
- cd $DRUPAL_ROOT
4853
- drush si os2web --db-url=mysql://root:@127.0.0.1/drupal --yes

0 commit comments

Comments
 (0)