Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

A service which will detect which build tool you are using

Notifications You must be signed in to change notification settings

fabric8-services/build-tool-detector

Repository files navigation

Build Tool Detector

Build

Pre-requisites

$ git clone https://github.com/fabric8-services/build-tool-detector $GOPATH/src/github.com/fabric8-services/build-tool-detector

Build

$ make build

This will perform following actions: fetch dependencies, generate Goa files from design folder, compile. When in doubt just make help.

Usage

$ export TOKEN=XXXX
$ curl -X GET "http://localhost:8099/api/detect/build/https%3A%2F%2Fgithub.com%2Ffabric8-launcher%2Flauncher-backend" -H "accept: application/vnd.goa.build.tool.detector+json" -H "Authorization: Bearer $TOKEN"
{"build-tool-type":"maven"}

where:

Test

In order to continuously run the tests whenever code change occur execute following command from the root directory of the project:

$ make test

and keep it running in the terminal.

Run

Run the server:

$ make run
Note
Our service’s configuration uses viper. To setup dependent service like fabric8-auth prod or prod-preview, please check configuration file or set env variable like BUILD_TOOL_DETECTOR_AUTH_URI

About

A service which will detect which build tool you are using

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published