mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
Set timeout on e2e test setup job to avoid long CI builds (#3529)
* Set job timeout to avoid long Jobs eating CI minutes * Removing install `need` for setup stage
This commit is contained in:
parent
3715191925
commit
ac33ce1a2e
@ -131,8 +131,7 @@ format:
|
||||
test:unit:setup:
|
||||
stage: setup
|
||||
image: alpine/curl
|
||||
needs:
|
||||
- install
|
||||
needs: []
|
||||
script:
|
||||
- mkdir -p tmp/codeclimate
|
||||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./tmp/codeclimate/cc-test-reporter
|
||||
@ -145,8 +144,8 @@ test:unit:setup:
|
||||
test:live:setup:
|
||||
stage: setup
|
||||
image: gcr.io/google.com/cloudsdktool/cloud-sdk:alpine
|
||||
needs:
|
||||
- install
|
||||
needs: []
|
||||
timeout: 15m
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
when: on_success
|
||||
@ -195,7 +194,7 @@ test:live:setup:
|
||||
- echo "GITLAB_URL=${GITLAB_URL}" >> intergration.env
|
||||
- echo "GITLAB_PERSONAL_ACCESS_TOKEN=${GITLAB_PERSONAL_ACCESS_TOKEN}" >> intergration.env
|
||||
- echo "Waiting for service to start"
|
||||
- sleep 210
|
||||
- sleep 240
|
||||
- attempt=1
|
||||
- |
|
||||
while [[ "$(curl --fail --silent -X GET "$GITLAB_URL/-/readiness?all=1" --insecure | jq -r '.master_check[0].status')" != "ok" ]]; do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user