@@ -21,7 +21,6 @@ matrix:
2121        - rustup target add aarch64-apple-ios 
2222      script :
2323        - cargo test 
24-         - cargo test --examples 
2524        - cargo build --target aarch64-apple-ios 
2625
2726    - name : " Linux, beta" 
@@ -81,41 +80,32 @@ matrix:
8180        - GECKODRIVER=$HOME/geckodriver cargo test --target wasm32-unknown-unknown --features=test-in-browser 
8281        - CHROMEDRIVER=$HOME/chromedriver cargo test --target wasm32-unknown-unknown --features=test-in-browser 
8382
84-     - name : " Linux, nightly, docs" 
83+     - &nightly_and_docs 
84+       name : " Linux, nightly, docs" 
8585      rust : nightly 
8686      os : linux 
8787      install :
8888        - cargo --list | egrep "^\s*deadlinks$" -q || cargo install cargo-deadlinks 
8989        - cargo deadlinks -V 
9090      script :
91+         #  Check that our tests pass in the default configuration
9192        - cargo test 
9293        - cargo test --benches 
93-         - cargo test --examples 
94+         #  Check that setting various features does not break the build
95+         - cargo build --features=std 
96+         - cargo build --features=log 
97+         - cargo build --features=custom 
9498        #  remove cached documentation, otherwise files from previous PRs can get included
9599        - rm -rf target/doc 
96-         - cargo doc --no-deps --features=std,log 
100+         - cargo doc --no-deps --features=std,log,custom  
97101        - cargo deadlinks --dir target/doc 
98102        #  also test minimum dependency versions are usable
99103        - cargo generate-lockfile -Z minimal-versions 
100-         - cargo test 
104+         - cargo test --features=std,log,custom  
101105
102-     - name :  " OSX, nightly, docs " 
103-       rust :  nightly 
106+     - << :  *nightly_and_docs 
107+       name :  " OSX,  nightly, docs " 
104108      os : osx 
105-       install :
106-         - cargo --list | egrep "^\s*deadlinks$" -q || cargo install cargo-deadlinks 
107-         - cargo deadlinks -V 
108-       script :
109-         - cargo test 
110-         - cargo test --benches 
111-         - cargo test --examples 
112-         #  remove cached documentation, otherwise files from previous PRs can get included
113-         - rm -rf target/doc 
114-         - cargo doc --no-deps --features=std,log 
115-         - cargo deadlinks --dir target/doc 
116-         #  also test minimum dependency versions are usable
117-         - cargo generate-lockfile -Z minimal-versions 
118-         - cargo test 
119109
120110    - name : " cross-platform build only" 
121111      rust : nightly 
@@ -141,6 +131,7 @@ matrix:
141131        - cargo xbuild --target=x86_64-unknown-uefi 
142132        - cargo xbuild --target=x86_64-unknown-hermit 
143133        - cargo xbuild --target=x86_64-unknown-l4re-uclibc 
134+         - cargo xbuild --target=x86_64-uwp-windows-gnu 
144135        - cargo xbuild --target=x86_64-wrs-vxworks 
145136        #  also test minimum dependency versions are usable
146137        - cargo generate-lockfile -Z minimal-versions 
@@ -155,6 +146,7 @@ matrix:
155146        - cargo xbuild --target=x86_64-unknown-hermit 
156147        - cargo xbuild --target=x86_64-unknown-l4re-uclibc 
157148        - cargo xbuild --target=x86_64-uwp-windows-gnu 
149+         - cargo xbuild --target=x86_64-wrs-vxworks 
158150
159151    #  Trust cross-built/emulated targets. We must repeat all non-default values.
160152    - name : " Linux (MIPS, big-endian)" 
@@ -201,7 +193,6 @@ before_script:
201193
202194script :
203195  - cargo test 
204-   - cargo test --examples 
205196
206197after_script : set +e 
207198
0 commit comments