Skip to content

Commit

Permalink
Merge pull request #750 from wasmerio/feature/doc-ci
Browse files Browse the repository at this point in the history
Build API documentation with cargo doc.
  • Loading branch information
syrusakbary authored Sep 4, 2019
2 parents f68ad7f + f785fe2 commit 7b1ab0c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: spectests emtests clean build install lint precommit
.PHONY: spectests emtests clean build install lint precommit docs

# Generate files
generate-spectests:
Expand Down Expand Up @@ -183,3 +183,6 @@ publish-release:
# must install graphviz for `dot`
dep-graph:
cargo deps --optional-deps --filter wasmer-wasi wasmer-wasi-tests wasmer-kernel-loader wasmer-dev-utils wasmer-llvm-backend wasmer-emscripten wasmer-emscripten-tests wasmer-runtime-core wasmer-runtime wasmer-middleware-common wasmer-middleware-common-tests wasmer-singlepass-backend wasmer-clif-backend wasmer --manifest-path Cargo.toml | dot -Tpng > wasmer_depgraph.png

docs:
cargo doc --features=backend-singlepass,backend-llvm,wasi,managed
16 changes: 16 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,22 @@ jobs:
tag: dev
assets: $(Build.ArtifactStagingDirectory)

- job: Docs
pool:
vmImage: "ubuntu-16.04"
variables:
rust_toolchain: nightly-2019-08-15
steps:
- checkout: self
submodules: true
- template: .azure/install-rust.yml
- template: .azure/install-llvm.yml
- template: .azure/install-sccache.yml
- template: .azure/install-cmake.yml
- bash: |
make docs
displayName: Build documentation
# We only run the pipelines on PRs to Master
pr:
- master
Expand Down

0 comments on commit 7b1ab0c

Please sign in to comment.