{"id":23801995,"url":"https://github.com/spirals-team/jtravis","last_synced_at":"2025-09-06T15:32:22.586Z","repository":{"id":28681183,"uuid":"119052991","full_name":"Spirals-Team/jtravis","owner":"Spirals-Team","description":"A java binding for the TravisCI Travis REST API ","archived":false,"fork":false,"pushed_at":"2023-12-05T22:07:24.000Z","size":2607,"stargazers_count":7,"open_issues_count":5,"forks_count":4,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-17T11:14:14.576Z","etag":null,"topics":["java","travis-ci","travis-ci-api"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Spirals-Team.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-26T13:11:48.000Z","updated_at":"2022-05-23T06:41:53.000Z","dependencies_parsed_at":"2022-08-18T19:21:36.034Z","dependency_job_id":null,"html_url":"https://github.com/Spirals-Team/jtravis","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spirals-Team%2Fjtravis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spirals-Team%2Fjtravis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spirals-Team%2Fjtravis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spirals-Team%2Fjtravis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spirals-Team","download_url":"https://codeload.github.com/Spirals-Team/jtravis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232130452,"owners_count":18476790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","travis-ci","travis-ci-api"],"created_at":"2025-01-01T22:17:46.172Z","updated_at":"2025-01-01T22:17:46.801Z","avatar_url":"https://github.com/Spirals-Team.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jtravis [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/central.maven.org/maven2/fr/inria/jtravis/jtravis/maven-metadata.xml.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22fr.inria.jtravis%22%20AND%20a%3A%22jtravis%22) [![Build Status](https://travis-ci.org/Spirals-Team/jtravis.svg?branch=master)](https://travis-ci.org/Spirals-Team/jtravis) [![Coverage Status](https://coveralls.io/repos/github/Spirals-Team/jtravis/badge.svg?branch=master)](https://coveralls.io/github/Spirals-Team/jtravis?branch=master)\n\nThe purpose of this project is to propose a Java API in order to use Travis-CI API.\n\n## Install\n\n```bash\nmvn install\n```\n\n## Usage\n\nThe API can be immediately used after specifying the following dependency in your pom.xml:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003efr.inria.jtravis\u003c/groupId\u003e\n    \u003cartifactId\u003ejtravis\u003c/artifactId\u003e\n    \u003cversion\u003e2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nThe API rely on Travis CI API V3 for most of its part, but some endpoints of Travis CI API V2 are still available (like /jobs endpoint).\nIt *does not* allow to trigger new builds for now. But it does not require to use TravisCI authentication either.\n\n### Limitations\n\nThis tool has primarily been developed in order to study Java builds using Maven tools: so, most features rely on that choice. \nDon't hesitate to propose pull requests in order to enhance the current state of this library.\n\n### Github Integration\n\nJTravis uses Github API in order to get useful information about pull requests when builds has been triggered by pull requests. \n\nSee [javadoc from github-api library](http://github-api.kohsuke.org/apidocs/org/kohsuke/github/GitHubBuilder.html#fromEnvironment--) for more information.\n\n### Usage example\n\n```java \n\nJTravis jTravis = new JTravis.Builder().build(); // you can specify in the builder the Github API token and/or the Travis CI API token\nOptional\u003cRepository\u003e repository = jTravis.repository().fromSlug(\"Spirals-Team/jtravis\");\n\nif (repository.isPresent()) {\n    Optional\u003cBuilds\u003e optionalBuilds = jTravis.build().fromRepository(repository.get());\n\n    if (optionalBuilds.isPresent()) {\n        for (Build build : optionalBuilds.get().getBuilds()) {\n            System.out.println(\"build id: \"+build.getId()+\" status: \"+build.getState().name());\n        }\n    }\n}\n```\n\n## Aknowledgement\n\nThis project has been funded by the InriaHub / ADT LibRepair.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspirals-team%2Fjtravis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspirals-team%2Fjtravis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspirals-team%2Fjtravis/lists"}