-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
43 lines (36 loc) · 1.38 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
language: php
dist: trusty
sudo: false
php:
- 7.1
- 7.2
env:
global:
- SIMPLETEST_DB=sqlite://tmp/site.sqlite
- SIMPLETEST_BASE_URL="http://127.0.0.1:8080"
before_install:
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini
- composer --verbose self-update --$COMPOSER_CHANNEL
- composer --version
- composer global require "drupal/coder:8.2.*"
- composer global require dealerdirect/phpcodesniffer-composer-installer
- export PATH="$PATH:$HOME/.composer/vendor/bin"
- phpcs -i
install:
- composer --verbose validate
- composer --verbose install
script:
- cd $TRAVIS_BUILD_DIR/web
- ./../vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite --config-dir=$TRAVIS_BUILD_DIR/config/sync
- ./../vendor/bin/drush runserver $SIMPLETEST_BASE_URL &
- until curl -s $SIMPLETEST_BASE_URL; do true; done > /dev/null
- ./../vendor/bin/drush
- ./../vendor/bin/drupal
- if [[ "$RUN_PHPCS" = true ]]; then phpcs --standard=Drupal modules/custom -s; fi;
after_success:
- curl -o /tmp/travis-automerge https://raw.githubusercontent.com/cdown/travis-automerge/master/travis-automerge
- chmod a+x /tmp/travis-automerge
- BRANCHES_TO_MERGE_REGEX='devel' BRANCH_TO_MERGE_INTO=master GITHUB_REPO=vladdancer/d8s-pizza /tmp/travis-automerge
notifications:
email: false