Browse Source

Fix issue with travis running force pushed commits (#43)

TravisCi provides the $TRAVIS_COMMIT environment variable which I was
using to get composer to install the correct version. However it appears
that under some circumstances travis does not set this variable to the
correct commit hash, which can cause our builds to fail. This avoids
using that variable all together to avoid that problem.
pull/756/head
Jonathan Green 8 years ago committed by Diego Pino Navarro
parent
commit
2936dfea25
  1. 3
      .travis.yml

3
.travis.yml

@ -19,8 +19,9 @@ before_install:
install: install:
- $SCRIPT_DIR/travis_setup.sh - $SCRIPT_DIR/travis_setup.sh
- git -C "$TRAVIS_BUILD_DIR" checkout -b travis-testing
- cd $DRUPAL_DIR; composer config repositories.local path "$TRAVIS_BUILD_DIR" - cd $DRUPAL_DIR; composer config repositories.local path "$TRAVIS_BUILD_DIR"
- composer require "islandora/islandora:dev-$TRAVIS_COMMIT as dev-8.x-1.x" --prefer-source - composer require "islandora/islandora:dev-travis-testing as dev-8.x-1.x" --prefer-source
- cd web; drush en -y islandora - cd web; drush en -y islandora
script: script:

Loading…
Cancel
Save