ligurio / testres-db Goto Github PK
View Code? Open in Web Editor NEWis a tool to import test results into SQLite database
License: MIT License
is a tool to import test results into SQLite database
License: MIT License
Access to TeamCity API requires access token, it can be generate in Settings. Currently, supported API version is TeamCity 2018.1.3 or up.
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.
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
}
implement incremental fetch
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.