Skip to content

Commit 2ce07cc

Browse files
committed
more travis hackery
1 parent 3a55a7a commit 2ce07cc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("cargo:rustc-cfg=travis");
3+
}

ci/script.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ main() {
88
export RUSTFLAGS=--cfg=travis
99
fi
1010

11+
sed -i.bak '/^\[package\]$/ibuild = "build.rs"' Cargo.toml
12+
1113
# Build debug and release targets
1214
cross build --target $TARGET
1315
cross build --target $TARGET --release

0 commit comments

Comments
 (0)