This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
59 lines (51 loc) · 1.6 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
53
54
55
56
57
58
59
matrix:
include:
- sudo: required
dist: trusty
language: php
cache:
apt: true
directories:
- "$HOME/.composer/cache"
- "$HOME/.drush/cache"
php: 7.1
before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- composer --version
install:
# Build the code base.
- composer install --no-interaction --no-progress --no-suggest
# Add Composer's local bin directory to the PATH.
- export PATH="$HOME/.composer/vendor/bin:$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
# Register the Drupal and DrupalPractice Standard with PHPCS.
- phpcs --config-set installed_paths $TRAVIS_BUILD_DIR/vendor/drupal/coder/coder_sniffer
script:
- composer validate --no-check-all --ansi
# Check Drupal coding standards and best practices.
- phpcs --standard=Drupal,DrupalPractice --colors --ignore=*/css/*,*/fonts/*,*/vendor/*,*.md .
- sudo: required
dist: trusty
language: node_js
cache:
directories:
- "node_modules"
- "STARTER/node_modules"
node_js: 6
env:
- NODE_ENV=test
before_install:
- npm install -g npm@5
install:
# Build Draft theme code base.
- npm install
# Build STARTER code base.
- cd STARTER && npm install
script:
# ESLint Draft theme.
- cd .. && npm run lint:js
# Testing STARTER.
- cd STARTER && npm run lint:js
- npm run build:js
- npm run lint:scss
- npm run build:scss