Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from charliestrawn/top-level-makefile
Fix travis builds for forks, don't publish if not Workiva/frugal, add top level Makefile
- Loading branch information
Showing
4 changed files
with
55 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
THIS_REPO := github.com/Workiva/frugal | ||
|
||
all: unit | ||
|
||
clean: | ||
@rm -rf /tmp/frugal | ||
@rm -rf /tmp/frugal-py3 | ||
|
||
unit: clean unit-cli unit-go unit-java unit-py2 unit-py3 | ||
|
||
unit-cli: | ||
go test ./test -race | ||
|
||
unit-go: | ||
cd lib/go && glide install && go test -v -race | ||
|
||
unit-java: | ||
mvn -f lib/java/pom.xml checkstyle:check clean verify | ||
|
||
unit-py2: | ||
virtualenv -p /usr/bin/python /tmp/frugal && \ | ||
. /tmp/frugal/bin/activate && \ | ||
$(MAKE) -C $(PWD)/lib/python deps-tornado deps-gae xunit-py2 flake8-py2 &&\ | ||
deactivate | ||
|
||
unit-py3: | ||
virtualenv -p python3 /tmp/frugal-py3 && \ | ||
. /tmp/frugal-py3/bin/activate && \ | ||
$(MAKE) -C $(PWD)/lib/python deps-asyncio xunit-py3 flake8-py3 && \ | ||
deactivate | ||
|
||
.PHONY: \ | ||
all \ | ||
clean \ | ||
unit \ | ||
unit-cli \ | ||
unit-go \ | ||
unit-java \ | ||
unit-py2 \ | ||
unit-py3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters