Fix ci build fails

There was some problem with the std examples, so I changed ci to only check a seperate use of the bme680 in a new ci-folder to be no_std compatible.
This commit is contained in:
Chris 2019-01-16 18:10:45 +01:00 committed by marcelbuesing
parent 79955a19be
commit 5ede8096c4
No known key found for this signature in database
GPG key ID: E51C4F8A2B7FF43E
4 changed files with 21 additions and 2 deletions

4
.gitignore vendored
View file

@ -1,3 +1,5 @@
Cargo.lock Cargo.lock
/target **/target
**/*.rs.bk **/*.rs.bk

View file

@ -6,7 +6,7 @@ rust:
script: script:
- cargo build --verbose - cargo build --verbose
- cargo test --verbose - cargo test --verbose
- cargo check --target thumbv7m-none-eabi # check for no_std - cd ci/no_std_test && rustup target add thumbv7m-none-eabi && cargo check --target thumbv7m-none-eabi # check for no_std
matrix: matrix:
allow_failures: allow_failures:
- rust: nightly - rust: nightly

View file

@ -0,0 +1,9 @@
[package]
name = "no_std_test"
version = "0.1.0"
authors = ["marcelbuesing <buesing.marcel@googlemail.com>"]
edition = "2018"
[dependencies]
bme680 = { path = "../../"}
log = "0.4"

View file

@ -0,0 +1,8 @@
#![no_std]
use bme680::*;
use log::info;
pub fn test_no_std() {
info!("chipid {:?}", BME680_CHIP_ID);
}