2018-10-28 09:31:28 +00:00
|
|
|
language: rust
|
2019-04-08 16:58:41 +00:00
|
|
|
dist: xenial
|
2018-11-16 17:46:06 +00:00
|
|
|
# sudo is required to enable kcov to use the personality syscall
|
|
|
|
sudo: required
|
|
|
|
|
2018-11-20 19:34:42 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- DISABLE_CLIPPY=1
|
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
|
|
|
|
|
|
|
matrix:
|
|
|
|
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
|
|
|
|
sources:
|
|
|
|
- kalakris-cmake
|
2018-10-28 09:31:28 +00:00
|
|
|
|
2018-11-16 19:22:12 +00:00
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
rust: nightly
|
|
|
|
|
2018-10-28 09:31:28 +00:00
|
|
|
- env: TARGET=x86_64-unknown-linux-musl
|
2019-03-16 18:12:36 +00:00
|
|
|
rust: beta
|
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
|
|
|
|
|
|
|
|
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
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- /home/travis/.cargo
|
|
|
|
|
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
|