2016-01-21 01:03:24 +00:00
|
|
|
language: rust
|
2017-05-30 04:58:12 +00:00
|
|
|
rust: nightly
|
2017-11-23 15:05:06 +00:00
|
|
|
services: docker
|
2017-09-26 21:06:56 +00:00
|
|
|
|
2020-07-17 13:22:46 +00:00
|
|
|
jobs:
|
2017-05-30 04:58:12 +00:00
|
|
|
include:
|
2017-11-23 15:05:06 +00:00
|
|
|
# Linux
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "aarch64-unknown-linux-gnu"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=aarch64-unknown-linux-gnu NO_JEMALLOC_TESTS=1
|
2020-07-21 03:18:43 +00:00
|
|
|
arch: arm64
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "powerpc64le-unknown-linux-gnu"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=powerpc64le-unknown-linux-gnu NO_JEMALLOC_TESTS=1
|
2020-07-21 03:18:43 +00:00
|
|
|
arch: ppc64le
|
2018-10-24 09:09:54 +00:00
|
|
|
- name: "x86_64-unknown-linux-gnu (nightly)"
|
2020-07-21 03:18:43 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu VALGRIND=1
|
2018-11-06 17:37:27 +00:00
|
|
|
install: rustup component add llvm-tools-preview
|
2018-11-03 16:12:09 +00:00
|
|
|
addons: &valgrind
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- valgrind
|
2018-10-24 09:09:54 +00:00
|
|
|
- name: "x86_64-unknown-linux-gnu (stable)"
|
2018-11-03 16:12:09 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu VALGRIND=1
|
2018-10-24 09:09:54 +00:00
|
|
|
rust: stable
|
2018-11-06 17:37:27 +00:00
|
|
|
install: rustup component add llvm-tools-preview
|
2018-11-03 16:12:09 +00:00
|
|
|
addons: *valgrind
|
2018-11-15 15:16:15 +00:00
|
|
|
- name: "Benchmarks using x86_64-unknown-linux-gnu (nightly)"
|
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
install: true
|
|
|
|
script:
|
2018-11-15 15:21:14 +00:00
|
|
|
- cargo test --bench roundtrip
|
2020-07-17 13:22:46 +00:00
|
|
|
# FIXME: Re-enable this when allocator API is stable.
|
|
|
|
# - cargo test --features=alloc_trait --bench roundtrip
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "x86_64-unknown-linux-musl"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-musl NOBGT=1 NO_JEMALLOC_TESTS=1
|
2020-07-21 03:18:43 +00:00
|
|
|
install: rustup target add x86_64-unknown-linux-musl
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
musl-tools
|
2017-11-23 15:05:06 +00:00
|
|
|
|
|
|
|
# OSX
|
2018-11-03 15:53:36 +00:00
|
|
|
# FIXME: cannot jemalloc tests fail due to:
|
|
|
|
# https://github.com/jemalloc/jemalloc/issues/1320
|
2019-04-05 14:19:10 +00:00
|
|
|
# https://github.com/gnzlbg/jemallocator/issues/85
|
2018-11-03 16:12:09 +00:00
|
|
|
# FIXME: valgrind fails on OSX
|
2019-04-05 14:19:10 +00:00
|
|
|
# https://github.com/gnzlbg/jemallocator/issues/86
|
2018-10-24 09:09:54 +00:00
|
|
|
- name: "x86_64-apple-darwin (nightly)"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=x86_64-apple-darwin NO_JEMALLOC_TESTS=1
|
2018-07-11 18:29:10 +00:00
|
|
|
os: osx
|
2018-10-24 13:25:24 +00:00
|
|
|
osx_image: xcode10
|
2020-07-21 03:18:43 +00:00
|
|
|
install: rustup component add llvm-tools-preview
|
2018-11-06 17:37:27 +00:00
|
|
|
install: rustup component add llvm-tools-preview
|
2018-10-24 09:09:54 +00:00
|
|
|
- name: "x86_64-apple-darwin (stable)"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=x86_64-apple-darwin NO_JEMALLOC_TESTS=1
|
2018-07-11 18:29:10 +00:00
|
|
|
os: osx
|
2018-10-24 13:25:24 +00:00
|
|
|
osx_image: xcode10
|
2018-10-24 09:09:54 +00:00
|
|
|
rust: stable
|
2018-11-06 17:37:27 +00:00
|
|
|
install: rustup component add llvm-tools-preview
|
2017-11-23 15:05:06 +00:00
|
|
|
|
2019-01-02 21:51:58 +00:00
|
|
|
# TOOLING
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "Documentation"
|
2019-01-03 15:29:12 +00:00
|
|
|
install: true
|
2018-11-05 19:15:59 +00:00
|
|
|
script: RUSTDOCFLAGS="--cfg jemallocator_docs" cargo doc
|
2018-10-30 19:34:36 +00:00
|
|
|
- name: "rustfmt"
|
|
|
|
install: true
|
|
|
|
rust: nightly
|
2019-03-20 10:30:50 +00:00
|
|
|
script: |
|
|
|
|
if rustup component add rustfmt-preview ; then
|
|
|
|
cargo fmt --all -- --check
|
|
|
|
fi
|
2018-11-03 16:01:27 +00:00
|
|
|
- name: "clippy"
|
|
|
|
install: true
|
|
|
|
rust: nightly
|
2018-11-07 22:31:35 +00:00
|
|
|
# allow(clippy::all) fails in the syscrate, so we can't use --all here:
|
2018-11-04 17:48:24 +00:00
|
|
|
script: |
|
2019-03-20 10:30:50 +00:00
|
|
|
if rustup component add clippy-preview ; then
|
2020-07-21 11:33:59 +00:00
|
|
|
cargo clippy -p tikv-jemalloc-sys -- -D clippy::all
|
|
|
|
cargo clippy -p tikv-jemallocator -- -D clippy::all
|
|
|
|
cargo clippy -p tikv-jemallocator-global -- -D clippy::all
|
|
|
|
cargo clippy -p tikv-jemalloc-ctl -- -D clippy::all
|
2018-11-04 17:48:24 +00:00
|
|
|
fi
|
2018-10-24 11:53:00 +00:00
|
|
|
- name: "Shellcheck"
|
|
|
|
install: true
|
|
|
|
script: shellcheck ci/*.sh
|
2018-05-03 16:25:21 +00:00
|
|
|
|
2018-11-15 15:16:15 +00:00
|
|
|
install: rustup target add ${TARGET}
|
2018-11-06 17:37:27 +00:00
|
|
|
script: sh ci/run.sh
|
2016-01-21 01:03:24 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|