forked from acquia/blt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (52 loc) · 1.85 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
60
# Note that the example .travis.yml file for child projects lives in /install.
sudo: false
language: php
php:
- 5.6
cache:
bundler: true
apt: true
directories:
- "$HOME/.composer/cache"
- "$HOME/.drush/cache"
- "$HOME/.nvm"
- "vendor"
notifications:
# slack: acquia:KKfgpOkDhcO26Erv5uoZMfdP
addons:
ssh_known_hosts:
- svn-5223.devcloud.hosting.acquia.com
before_install:
- nvm install 0.12
- nvm use 0.12
- composer selfupdate
- phpenv config-rm xdebug.ini
# Enable $_ENV variables in PHP.
- echo 'variables_order = "EGPCS"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Ensure that always_populate_raw_post_data PHP setting: Not set to -1 does not happen.
- echo "always_populate_raw_post_data = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- git config --global user.name "Travis-CI"
- git config --global user.email "noreply@travis-ci.org"
- mysql -e 'CREATE DATABASE drupal;'
- echo $SSH_PRIVATE_KEY => ~/.ssh/id_rsa_bolt
- chmod 600 ~/.ssh/id_rsa_bolt
install:
- composer install
- export PATH=$PATH:$TRAVIS_BUILD_DIR/vendor/bin
before_script:
# Clear drush release history cache, to pick up new releases.
- rm -f ~/.drush/cache/download/*---updates.drupal.org-release-history-*
# Verify that no git diffs (caused by line ending variation) exist.
- git diff --exit-code
script:
# Generate a new 'bolted' project.
- ./bolt.sh configure
- ./bolt.sh create
# Call targets in the new 'bolted' project.
- ../bolted8/bolt.sh build:validate:test -Dcreate_alias=false -Dbehat.run-server=true -Dbehat.launch-phantom=true
# Deploy build artifact.
- export DEPLOY_PR=true
- ../bolted8/scripts/deploy/travis-deploy.sh 8.x
# Validate and run 'bolt' phpunit tests.
- phpcs --standard=../bolted8/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml tests
- phpunit tests