-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
52 lines (45 loc) · 1.36 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
49
50
51
52
language: php
php:
- 7.3
env:
global:
- DOCROOT=$TRAVIS_BUILD_DIR/../drupal
- WAZWAN_DIR=$DOCROOT/themes/custom/kashmir
cache:
apt: true
directories:
- '$HOME/.composer/cache'
- '$HOME/.composer/vendor'
- '$HOME/.drush/cache'
- '$HOME/.npm'
- '$HOME/.nvm'
- '$WAZWAN_DIR/node_modules'
mysql:
database: drupal
username: root
encoding: utf8
before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- composer global require drush/drush:8.* --prefer-source
- composer global require drupal/coder:8.* --prefer-source
- phpenv rehash
- rm -f ~/.drush/cache/download/*---updates.drupal.org-release-history-*
- mysql -e 'create database drupal;'
- mv $WAZWAN_DIR/node_modules $TRAVIS_BUILD_DIR/
install:
- cd ..
- drush dl drupal --drupal-project-rename=drupal -y
- cd drupal
- mkdir -p themes/custom
- drush --verbose site-install minimal --db-url=mysql://root:@127.0.0.1/drupal --yes
- git clone https://github.com/skippednote/kashmir.git
- cd $WAZWAN_DIR
- nvm install stable
- nvm use stable
- npm install -g gulp-cli
- npm install
script:
- phpcs --standard=$HOME/.composer/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml --ignore=*/node_modules/*,*/dist/*,*/gulp/*,*/_twig-components/*,gulpfile.js,README.md $WAZWAN_DIR
- gulp