1
0
mirror of https://github.com/actix/actix synced 2024-11-27 16:22:56 +01:00
actix/Makefile

41 lines
796 B
Makefile
Raw Normal View History

2017-09-25 07:28:26 +02:00
.PHONY: default build test doc clean
CARGO_FLAGS := --features "$(FEATURES)"
2017-09-25 07:28:26 +02:00
default: test
build:
cargo build $(CARGO_FLAGS)
test: build
cargo test $(CARGO_FLAGS)
2017-10-12 03:17:14 +02:00
cd examples/chat && cargo build
2017-09-25 07:28:26 +02:00
2017-10-26 02:55:16 +02:00
skeptic:
USE_SKEPTIC=1 cargo test $(CARGO_FLAGS)
2017-09-25 07:28:26 +02:00
# cd examples/word-count && python setup.py install && pytest -v tests
clippy:
if $$CLIPPY; then cargo clippy $(CARGO_FLAGS); fi
doc: build
cargo doc --no-deps $(CARGO_FLAGS)
2018-02-21 00:15:12 +01:00
cd guide; mdbook build -d ../target/doc/guide/; cd ..
2017-09-25 07:28:26 +02:00
clean:
rm -r target
.PHONY: gh-pages-doc
2017-10-23 05:56:55 +02:00
gh-pages-doc: doc
2017-09-25 07:28:26 +02:00
cd gh-pages && git pull
rm -r gh-pages/doc
cp -r target/doc gh-pages/
rm gh-pages/doc/.lock
cd gh-pages && git add .
cd gh-pages && git commit -m "Update documentation"
publish: default gh-pages-doc
cargo publish
cd gh-pages && git push