Skip to content

Commit 65e29bb

Browse files
authored
fix(Travis CI): Prevent composer download fails 'Could not authenticate against github.com' (#992)
1 parent 498efa0 commit 65e29bb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,13 @@ install:
8282
then grep -rl 'cli' $DRUPAL_BUILD_DIR/core $DRUPAL_BUILD_DIR/modules | xargs sed -i "s/'cli'/'phpdbg'/g" || true;
8383
fi
8484

85+
# We don't care about any dirty changes in the vendor directory, throw them
86+
# all away.
87+
- composer --working-dir=$DRUPAL_BUILD_DIR config discard-changes true
8588
# Bring in the module dependencies without requiring a merge plugin. The
8689
# require also triggers a full 'composer install'.
87-
- composer --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.13.1 drupal/typed_data:^1.0
88-
- composer --working-dir=$DRUPAL_BUILD_DIR run-script drupal-phpunit-upgrade
90+
- composer --no-interaction --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.13.1 drupal/typed_data:^1.0
91+
- composer --no-interaction --working-dir=$DRUPAL_BUILD_DIR run-script drupal-phpunit-upgrade
8992

9093
script:
9194
# Run the unit tests using phpdbg if the environment variable is 'true'.

0 commit comments

Comments
 (0)