8000 Checking for specific status codes in your travis test · Issue #3 · geerlingguy/ansible-role-gitlab · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
Checking for specific status codes in your travis test #3
Closed
@nickjj

Description

@nickjj

Replace:

  # Make sure GitLab is running.
  - curl --insecure https://localhost/

With:

  - >
    curl --insecure -s -o /dev/null -w "%{http_code}" https://localhost/
    | grep -q '200'
    && (echo 'Status code 200 test: pass' && exit 0)
    || (echo 'Status code 200 test: fail' && exit 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0