forked from cloudtools/stacker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 736 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.PHONY: build lint test-unit test-functional test ci
# Only run the functional tests on the master branch, since they can be slow.
ifeq ($(CIRCLE_BRANCH),master)
CI_TESTS = test-unit test-functional
else
CI_TESTS = test-unit
endif
build:
docker build -t remind101/stacker .
lint:
flake8 --exclude stacker/tests/ stacker
flake8 --ignore N802 stacker/tests # ignore setUp naming
test-unit:
AWS_DEFAULT_REGION=us-east-1 python setup.py nosetests
test-functional:
bats tests
# General testing target for most development.
test: lint test-unit
# Target for CI tests. If building the master branch, this will also run the
# functional tests, which can be slow.
ci: $(CI_TESTS)
apidocs:
sphinx-apidoc --force -o docs/api stacker