We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e78697 commit 02a37e0Copy full SHA for 02a37e0
ci/script.sh
@@ -2,5 +2,23 @@
2
3
set -ex
4
5
+case "$TRAVIS_OS_NAME" in
6
+ linux)
7
+ host=x86_64-unknown-linux-gnu
8
+ ;;
9
+ osx)
10
+ host=x86_64-apple-darwin
11
12
+esac
13
+
14
+# NOTE Workaround for rust-lang/rust#31907 - disable doc tests when crossing
15
+if [ "$host" != "$TARGET" ]; then
16
+ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
17
+ brew install gnu-sed --default-names
18
+ fi
19
20
+ find src -name '*.rs' -type f | xargs sed -i -e 's:\(//.\s*```\):\1 ignore,:g'
21
+fi
22
23
cargo build --target $TARGET --verbose
24
cargo test --target $TARGET --verbose
0 commit comments