Skip to content

Commit 533b886

Browse files
committed
Add unstable API checks to CI
1 parent 55c8661 commit 533b886

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

azure-pipelines.yml

+10
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ jobs:
122122
- script: cargo build --manifest-path crates/web-sys/Cargo.toml --target wasm32-unknown-unknown --features Element
123123
- script: cargo build --manifest-path crates/web-sys/Cargo.toml --target wasm32-unknown-unknown --features Window
124124
- script: cargo test --manifest-path crates/web-sys/Cargo.toml --target wasm32-unknown-unknown --all-features
125+
- script: cargo test --manifest-path crates/web-sys/Cargo.toml --target wasm32-unknown-unknown --all-features
126+
displayName: "web-sys unstable APIs"
127+
env:
128+
RUSTFLAGS: --cfg=web_sys_unstable_apis
125129

126130
- job: test_js_sys
127131
displayName: "Run js-sys crate tests"
@@ -150,6 +154,10 @@ jobs:
150154
- script: cargo test -p webidl-tests --target wasm32-unknown-unknown
151155
env:
152156
WBINDGEN_I_PROMISE_JS_SYNTAX_WORKS_IN_NODE: 1
157+
- script: cargo test -p webidl-tests --target wasm32-unknown-unknown
158+
displayName: "webidl-tests unstable APIs"
159+
env:
160+
RUSTFLAGS: --cfg=web_sys_unstable_apis
153161

154162
- job: test_ui
155163
displayName: "Run UI tests"
@@ -319,6 +327,8 @@ jobs:
319327
displayName: "Document js-sys"
320328
- script: cargo doc --no-deps --manifest-path crates/web-sys/Cargo.toml --all-features
321329
displayName: "Document web-sys"
330+
env:
331+
RUSTFLAGS: --cfg=web_sys_unstable_apis
322332
- script: cargo doc --no-deps --manifest-path crates/futures/Cargo.toml
323333
displayName: "Document wasm-bindgen-futures"
324334
# Make a tarball even though a zip is uploaded, it looks like the tarball

0 commit comments

Comments
 (0)