From 170030f4a6054eec3dbc083d833406549c802d76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 31 Aug 2019 12:15:33 +0100 Subject: [PATCH] fix(ci): lower curl connection timeout from 120 to 30 seconds For faster codecov retries --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 41a44892e..490d74e03 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,14 +33,14 @@ jobs: - travis_retry make mock-assets script: make test-go after_success: - - travis_retry curl -s --fail https://codecov.io/bash | bash -s -- -F backend + - travis_retry curl -s --connect-timeout 30 --fail https://codecov.io/bash | bash -s -- -F backend - stage: Test name: Test JavaScript code <<: *DEFAULTS_JS script: make test-js after_success: - - travis_retry curl -s --fail https://codecov.io/bash | bash -s -- -F ui + - travis_retry curl -s --connect-timeout 30 --fail https://codecov.io/bash | bash -s -- -F ui # duplicate js test but with a different time zone, to ensure that tests/code work with non-UTC time zone - stage: Test @@ -48,7 +48,7 @@ jobs: <<: *DEFAULTS_JS script: env TZ=Pacific/Easter make test-js after_success: - - travis_retry curl -s --fail https://codecov.io/bash | bash -s -- -F ui + - travis_retry curl -s --connect-timeout 30 --fail https://codecov.io/bash | bash -s -- -F ui - stage: Lint name: Lint git commit @@ -191,5 +191,5 @@ jobs: - travis_retry docker login -u _ -p "$HEROKU_TOKEN" registry.heroku.com - travis_retry docker push registry.heroku.com/karma-demo/web # bundled heroku cli doesn't know anything about containers, update it - - travis_retry curl -s --fail https://cli-assets.heroku.com/install.sh | sh + - travis_retry curl -s --connect-timeout 30 --fail https://cli-assets.heroku.com/install.sh | sh - travis_retry /usr/local/bin/heroku container:release web --app karma-demo