Skip to content

Commit

Permalink
Fixing Travis CI build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Jun 7, 2016
1 parent 472bf04 commit 3d93d52
Show file tree
Hide file tree
Showing 6 changed files with 2,638 additions and 678 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cache:
apt: true
directories:
- "$HOME/.composer/cache"
- "$HOME/.console"
- "$HOME/.drush/cache"
- "$HOME/.nvm"
- "vendor"
Expand Down Expand Up @@ -39,6 +40,8 @@ before_install:
install:
- composer install
- export PATH=$TRAVIS_BUILD_DIR/vendor/bin:$PATH
# Initialize drupal consile default configuration.
- drupal init

before_script:
# Clear drush release history cache, to pick up new releases.
Expand All @@ -49,12 +52,16 @@ before_script:
script:
# Generate a new 'blted' project.
- ./blt.sh configure
# The local_uri must be set to 127.0.0.1:8888 because we are using drush runserver to run the site on Travis CI.
- drupal yaml:update:value project.yml project.local_uri 'http://127.0.0.1:8888'
# Output contents of project.yml.
- cat project.yml
- ./blt.sh create
# Call targets in the new 'blted' project.
- ../blted8/blt.sh ci:build:validate:test -Dcreate_alias=false -Dbehat.run-server=true -Dbehat.launch-phantom=true
# Deploy build artifact.
- ../blted8/blt.sh deploy:artifact:build -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="8.x-build"
# Add Drupal VM config to repo.
# Add Drupal VM config to repo. Do this only after drupal has been installed, as it changes the default alias.
- ../blted8/blt.sh vm:init
# Validate and run 'blt' phpunit tests.
- phpcs --standard=../blted8/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml tests
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"description": "BLT",
"license": "GPL-2.0",
"require": {
"drupal/console": "~0.10",
"phing/phing": "2.*",
"symfony/yaml": "~2.7",
"phpunit/phpunit": "5.4.*",
"platinumpixs/phing-random-string": "dev-master",
"squizlabs/php_codesniffer": "^2.4"
"squizlabs/php_codesniffer": "^2.4",
"symfony/yaml": "~2.7"
}
}
Loading

0 comments on commit 3d93d52

Please sign in to comment.