Giter Club home page Giter Club logo

testres-db's People

Contributors

ligurio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

theassyrian

testres-db's Issues

Support Travis CI

Unfortunately Travis CI doesn't support publishing of test results. But it is possible to parse logs and extract test results there. Access to Travis API requires access token, it can be generate in Settings. Username value is not required in config.

Support Cirrus CI

query {
  searchBuilds(repositoryOwner: "ligurio", repositoryName: "unreliablefs", SHA: "7e636a17d30871a584426d41ff0f6734515d0b2c") {
    id
    buildCreatedTimestamp
    branch
  }
}
#!/bin/sh

# https://github.com/cirruslabs/cirrus-ci-web/blob/master/schema.graphql

curl -s -X POST --data \
'{
  "query": "query BuildBySHAQuery($owner: String!, $name: String!, $SHA: String) { searchBuilds(repositoryOwner: $owner, repositoryName: $name, SHA: $SHA) { id } }",
  "variables": {
    "owner": "qemu",
    "name": "qemu",
    "SHA": "43d1455cf84283466e5c22a217db5ef4b8197b14"
  }
}' \
https://api.cirrus-ci.com/graphql | python -m json.tool

API methods:

type Root {
  viewer: User
  repository(id: ID!): Repository
  githubRepository(owner: String!, name: String!): Repository
  githubRepositories(owner: String!): [Repository]
  githubOrganizationInfo(organization: String!): GitHubOrganizationInfo
  build(id: ID!): Build
  searchBuilds(repositoryOwner: String!, repositoryName: String!, SHA: String): [Build]
  task(id: ID!): Task
  webhookDelivery(id: String!): WebHookDelivery
}

type Build {
  id: ID!
  repositoryId: ID!
  branch: String!
  changeIdInRepo: String!
  changeMessageTitle: String
  changeMessage: String
  durationInSeconds: Int
  clockDurationInSeconds: Int
  pullRequest: Int
  checkSuiteId: Int
  isSenderUserCollaborator: Boolean
  senderUserPermissions: String
  changeTimestamp: Int!
  buildCreatedTimestamp: Int!
  status: BuildStatus
  notifications: [Notification]
  tasks: [Task]
  taskGroupsAmount: Int
  latestGroupTasks: [Task]
  repository: Repository!
  viewerPermission: PermissionType!
}

type Task {
  id: ID!
  buildId: ID!
  repositoryId: ID!
  name: String!
  status: TaskStatus
  notifications: [Notification]
  commands: [TaskCommand]
  artifacts: [Artifacts]
  commandLogsTail(name: String!): [String]
  statusTimestamp: Int!
  creationTimestamp: Int!
  scheduledTimestamp: Int!
  executingTimestamp: Int!
  finalStatusTimestamp: Int!
  durationInSeconds: Int!
  labels: [String]
  uniqueLabels: [String]
  requiredPRLabels: [String]
  optional: Boolean
  statusDurations: [TaskStatusDuration]
  repository: Repository!
  build: Build!
  previousRuns: [Task]
  allOtherRuns: [Task]
  dependencies: [Task]
  automaticReRun: Boolean!
  useComputeCredits: Boolean!
  usedComputeCredits: Boolean!
  transaction: AccountTransaction
  triggerType: TaskTriggerType!
  instanceResources: InstanceResources
}

Support BuildBot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.