-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (43 loc) · 1.3 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
# @file
# .travis.yml - Drupal for Travis CI Integration
#
# Template provided by https://github.com/LionsAd/drupal_ti.
#
# Based for simpletest upon:
# https://github.com/sonnym/travis-ci-drupal-module-example
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 5.5
- 5.6
- 7
- hhvm
matrix:
fast_finish: true
branches:
only:
- "8.x-3.x"
- "8.x-3.x-dev"
env:
global:
# add composer's global bin directory to the path
# see: https://github.com/drush-ops/drush#install---composer
- PATH="$PATH:$HOME/.composer/vendor/bin"
before_install:
- composer self-update
# Codesniffer and Coder
- composer global require "squizlabs/php_codesniffer:2.0.*@dev"
- composer global require drupal/coder:8.2.0-beta1
- ln -s ~/.composer/vendor/drupal/coder/coder_sniffer/Drupal ~/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/
script:
- phpcs --report=full --standard=Drupal "$TRAVIS_BUILD_DIR" || true
- cd ~/
- git clone --depth 1 --branch 8.2.x http://git.drupal.org/project/drupal.git
- cd drupal/modules
- git clone --depth 1 --branch 8.x-3.x-dev https://github.com/ericpugh/drupal-views-bootstrap.git views_bootstrap
- ln -s $TRAVIS_BUILD_DIR
- cd ../
# - ./vendor/bin/phpunit -c core modules/views_bootstrap/tests/src/Unit