2018-10-28 09:31:28 +00:00
|
|
|
language: rust
|
2020-05-02 09:50:43 +00:00
|
|
|
dist: bionic # because of tarpaulin
|
2018-11-16 17:46:06 +00:00
|
|
|
|
2018-11-20 19:34:42 +00:00
|
|
|
env:
|
|
|
|
global:
|
2020-05-02 09:50:43 +00:00
|
|
|
- RUSTFLAGS="-D warnings"
|
2018-11-20 18:35:26 +00:00
|
|
|
|
2018-11-18 16:42:35 +00:00
|
|
|
before_install:
|
2018-11-18 16:52:16 +00:00
|
|
|
- git clone https://github.com/eldruin/rust-driver-ci-scripts ci
|
|
|
|
- bash ci/before_install.sh
|
2018-10-28 09:31:28 +00:00
|
|
|
|
2020-05-02 09:50:43 +00:00
|
|
|
jobs:
|
2018-10-28 09:31:28 +00:00
|
|
|
include:
|
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
2018-11-16 17:46:06 +00:00
|
|
|
before_script:
|
2018-11-19 21:05:44 +00:00
|
|
|
- bash ci/coverage_before_script.sh
|
2018-11-16 17:46:06 +00:00
|
|
|
after_success:
|
2018-11-19 21:05:44 +00:00
|
|
|
- bash ci/coverage_after_success.sh
|
2018-11-16 17:46:06 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libelf-dev
|
|
|
|
- libdw-dev
|
|
|
|
- binutils-dev
|
|
|
|
- cmake
|
2018-10-28 09:31:28 +00:00
|
|
|
|
2019-04-08 17:01:48 +00:00
|
|
|
# Minimum Supported Rust Version
|
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
rust: 1.31.0
|
|
|
|
|
2018-10-28 09:31:28 +00:00
|
|
|
# Raspberry Pi 1
|
|
|
|
- env: TARGET=arm-unknown-linux-gnueabi DISABLE_EXAMPLES=1 DISABLE_TESTS=1
|
|
|
|
|
|
|
|
# Raspberry Pi 2, 3, etc
|
|
|
|
- env: TARGET=armv7-unknown-linux-gnueabihf DISABLE_EXAMPLES=1 DISABLE_TESTS=1
|
|
|
|
|
|
|
|
# Bare metal
|
|
|
|
- env: TARGET=thumbv6m-none-eabi
|
|
|
|
- env: TARGET=thumbv7em-none-eabi
|
|
|
|
- env: TARGET=thumbv7em-none-eabihf
|
|
|
|
- env: TARGET=thumbv7m-none-eabi
|
|
|
|
|
2020-05-02 09:50:43 +00:00
|
|
|
allow_failures:
|
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
rust: nightly
|
|
|
|
|
|
|
|
- env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
rust: nightly
|
|
|
|
|
2018-10-28 09:31:28 +00:00
|
|
|
install:
|
2018-11-18 16:37:57 +00:00
|
|
|
bash ci/install.sh
|
2018-10-28 09:31:28 +00:00
|
|
|
|
|
|
|
script:
|
2018-11-18 16:37:57 +00:00
|
|
|
bash ci/script.sh
|
2018-10-28 09:31:28 +00:00
|
|
|
|
|
|
|
after_script: set +e
|
|
|
|
|
|
|
|
cache: cargo
|
2018-11-16 17:46:06 +00:00
|
|
|
|
2018-10-28 09:31:28 +00:00
|
|
|
before_cache:
|
2018-11-18 16:37:57 +00:00
|
|
|
bash ci/before_cache.sh
|
2018-10-28 09:31:28 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|