Skip to content

Commit

Permalink
Test Longer Tests in Travis (prometheus#2570)
Browse files Browse the repository at this point in the history
* Test Longer Tests in Travis

Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>

* Make test Target Run All Tests

* Add test-short to run short tests

test is running all the tests now as we are running make tests in
CircleCI and I think the base image is shared across Prometheus Org.

Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>

* Remove Empty Line

Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
  • Loading branch information
gouthamve authored and juliusv committed Apr 7, 2017
1 parent 934d86b commit cffb1ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ check_license:
@echo ">> checking license header"
@./scripts/check_license.sh

test:
test-short:
@echo ">> running short tests"
@$(GO) test -short $(pkgs)

test:
@echo ">> running all tests"
@$(GO) test $(pkgs)

format:
@echo ">> formatting code"
@$(GO) fmt $(pkgs)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ The Makefile provides several targets:

* *build*: build the `prometheus` and `promtool` binaries
* *test*: run the tests
* *test-short*: run the short tests
* *format*: format the source code
* *vet*: check the source code for common errors
* *assets*: rebuild the static assets
Expand Down

0 comments on commit cffb1ac

Please sign in to comment.