diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..2adf58219 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: java + +before_install: +- make -f Makefile.TRAVIS build + +script: +- make -f Makefile.TRAVIS test diff --git a/Makefile.TRAVIS b/Makefile.TRAVIS new file mode 100644 index 000000000..1f57cdec5 --- /dev/null +++ b/Makefile.TRAVIS @@ -0,0 +1,17 @@ +all: test + +build: client utility examples + +client: + $(MAKE) -C client -f Makefile.TRAVIS + +utility: client + $(MAKE) -C utility -f Makefile.TRAVIS + +examples: client + $(MAKE) -C examples -f Makefile.TRAVIS + +test: build + mvn test + +.PHONY: build client examples test utility diff --git a/README.md b/README.md index 1561dd429..1ccb33247 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ client_java -=========== \ No newline at end of file +=========== + +# Getting Started + * All of the core developers are accessible via the [Prometheus Developers Mailinglist](https://groups.google.com/forum/?fromgroups#!forum/prometheus-developers). + +# Testing + +[![Build Status](https://travis-ci.org/prometheus/client_java.png?branch=master)](https://travis-ci.org/prometheus/client_java) diff --git a/client/Makefile.TRAVIS b/client/Makefile.TRAVIS new file mode 100644 index 000000000..620fd3cc3 --- /dev/null +++ b/client/Makefile.TRAVIS @@ -0,0 +1,6 @@ +all: build + +build: + mvn install -DskipTests=true + +.PHONY: build diff --git a/examples/Makefile.TRAVIS b/examples/Makefile.TRAVIS new file mode 100644 index 000000000..620fd3cc3 --- /dev/null +++ b/examples/Makefile.TRAVIS @@ -0,0 +1,6 @@ +all: build + +build: + mvn install -DskipTests=true + +.PHONY: build diff --git a/utility/Makefile.TRAVIS b/utility/Makefile.TRAVIS new file mode 100644 index 000000000..620fd3cc3 --- /dev/null +++ b/utility/Makefile.TRAVIS @@ -0,0 +1,6 @@ +all: build + +build: + mvn install -DskipTests=true + +.PHONY: build