Skip to content

Commit 1a1387f

Browse files
committed
fix(Travis CI): Prevent composer download fails 'Could not authenticate against github.com' (#992)
1 parent ceb9124 commit 1a1387f

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
@@ -86,10 +86,13 @@ install:
8686
then grep -rl 'cli' $DRUPAL_BUILD_DIR/core $DRUPAL_BUILD_DIR/modules | xargs sed -i "s/'cli'/'phpdbg'/g" || true;
8787
fi
8888

89+
# We don't care about any dirty changes in the vendor directory, throw them
90+
# all away.
91+
- composer --working-dir=$DRUPAL_BUILD_DIR config discard-changes true
8992
# Bring in the module dependencies without requiring a merge plugin. The
9093
# require also triggers a full 'composer install'.
91-
- composer --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.12.5
92-
- composer --working-dir=$DRUPAL_BUILD_DIR run-script drupal-phpunit-upgrade
94+
- composer --no-interaction --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.12.5
95+
- composer --no-interaction --working-dir=$DRUPAL_BUILD_DIR run-script drupal-phpunit-upgrade
9396

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

0 commit comments

Comments
 (0)