Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abe6d55

Browse files
committed
Replace sleep with until
1 parent 2086ab5 commit abe6d55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ script:
3131
- if [[ $RELEASE = dev ]]; then composer --verbose update; fi;
3232
- cd $TRAVIS_BUILD_DIR/web
3333
- ./../vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite
34-
- ./../vendor/bin/drush runserver http://127.0.0.1:8080 &
35-
- sleep 3
34+
- ./../vendor/bin/drush runserver $SIMPLETEST_BASE_URL &
35+
- until curl -s $SIMPLETEST_BASE_URL; do true; done > /dev/null
3636
# Skip core/tests/Drupal/Tests/ComposerIntegrationTest.php because web/ has no composer.json
3737
# Ignore PageCache group temporarily, @see https://www.drupal.org/node/2770673
3838
- ./../vendor/bin/phpunit -c core --testsuite unit --exclude-group Composer,DependencyInjection,PageCache

0 commit comments

Comments
 (0)