2016-01-21 01:03:24 +00:00
|
|
|
language: rust
|
2017-05-30 04:58:12 +00:00
|
|
|
rust: nightly
|
2018-05-03 15:41:14 +00:00
|
|
|
sudo: false
|
2017-11-23 15:05:06 +00:00
|
|
|
services: docker
|
2017-09-26 21:06:56 +00:00
|
|
|
|
2017-05-30 04:58:12 +00:00
|
|
|
matrix:
|
|
|
|
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
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "arm-unknown-linux-gnueabi"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=arm-unknown-linux-gnueabi NO_JEMALLOC_TESTS=1
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "armv7-unknown-linux-gnueabihf"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=armv7-unknown-linux-gnueabihf NO_JEMALLOC_TESTS=1
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "i586-unknown-linux-gnu"
|
|
|
|
env: TARGET=i586-unknown-linux-gnu
|
2018-07-11 18:29:10 +00:00
|
|
|
addons: &gcc_multilib
|
2018-05-03 15:08:22 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- gcc-multilib
|
2018-10-24 09:09:54 +00:00
|
|
|
- name: "i686-unknown-linux-gnu (nightly)"
|
2018-10-17 13:29:38 +00:00
|
|
|
env: TARGET=i686-unknown-linux-gnu
|
2018-07-11 18:29:10 +00:00
|
|
|
addons: *gcc_multilib
|
2018-10-24 09:09:54 +00:00
|
|
|
- name: "i686-unknown-linux-gnu (beta)"
|
2018-10-17 13:29:38 +00:00
|
|
|
env: TARGET=i686-unknown-linux-gnu
|
2018-07-11 18:29:10 +00:00
|
|
|
addons: *gcc_multilib
|
2018-10-24 09:09:54 +00:00
|
|
|
rust: beta
|
|
|
|
- name: "i686-unknown-linux-gnu (stable)"
|
|
|
|
env: TARGET=i686-unknown-linux-gnu
|
|
|
|
addons: *gcc_multilib
|
|
|
|
rust: stable
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "i686-unknown-linux-musl"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=i686-unknown-linux-musl NOBGT=1 NO_JEMALLOC_TESTS=1
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "mips-unknown-linux-gnu"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=mips-unknown-linux-gnu NO_JEMALLOC_TESTS=1
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "mips64-unknown-linux-gnuabi64"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=mips64-unknown-linux-gnuabi64 NO_JEMALLOC_TESTS=1
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "mips64el-unknown-linux-gnuabi64"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=mips64el-unknown-linux-gnuabi64 NO_JEMALLOC_TESTS=1
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "mipsel-unknown-linux-gnu"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=mipsel-unknown-linux-gnu NO_JEMALLOC_TESTS=1
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "powerpc-unknown-linux-gnu"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=powerpc-unknown-linux-gnu NO_JEMALLOC_TESTS=1
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "powerpc64-unknown-linux-gnu"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=powerpc64-unknown-linux-gnu NO_JEMALLOC_TESTS=1
|
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
|
2018-10-24 09:09:54 +00:00
|
|
|
- name: "x86_64-unknown-linux-gnu (nightly)"
|
2018-11-06 11:45:57 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu VALGRIND=1 JEMALLOC_SYS_VERIFY_CONFIGURE=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
|
|
|
|
- autoconf
|
2018-10-24 09:09:54 +00:00
|
|
|
- name: "x86_64-unknown-linux-gnu (beta)"
|
2018-11-03 16:12:09 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu VALGRIND=1
|
2018-07-11 18:29:10 +00:00
|
|
|
rust: beta
|
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-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:
|
|
|
|
- cargo bench
|
|
|
|
- cargo bench --features=alloc_trait
|
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
|
2017-11-23 15:05:06 +00:00
|
|
|
|
|
|
|
# Android
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "aarch64-linux-android"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=aarch64-linux-android NO_JEMALLOC_TESTS=1
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "x86_64-linux-android"
|
|
|
|
env: TARGET=x86_64-linux-android
|
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
|
|
|
|
# https://github.com/alexcrichton/jemallocator/issues/85
|
2018-10-24 09:09:54 +00:00
|
|
|
- name: "i686-apple-darwin (nightly)"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=i686-apple-darwin NO_JEMALLOC_TESTS=1
|
2018-10-24 09:09:54 +00:00
|
|
|
os: osx
|
2018-10-24 13:25:24 +00:00
|
|
|
osx_image: xcode10
|
2018-10-24 09:09:54 +00:00
|
|
|
- name: "i686-apple-darwin (beta)"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=i686-apple-darwin NO_JEMALLOC_TESTS=1
|
2018-10-24 09:09:54 +00:00
|
|
|
os: osx
|
2018-10-24 13:25:24 +00:00
|
|
|
osx_image: xcode10
|
2018-10-24 09:09:54 +00:00
|
|
|
rust: beta
|
|
|
|
- name: "i686-apple-darwin (stable)"
|
2018-11-03 15:53:36 +00:00
|
|
|
env: TARGET=i686-apple-darwin NO_JEMALLOC_TESTS=1
|
2018-05-03 16:25:21 +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-03 16:12:09 +00:00
|
|
|
# FIXME: valgrind fails on OSX
|
|
|
|
# https://github.com/alexcrichton/jemallocator/issues/86
|
2018-10-24 09:09:54 +00:00
|
|
|
- name: "x86_64-apple-darwin (nightly)"
|
2018-11-06 11:45:57 +00:00
|
|
|
env: TARGET=x86_64-apple-darwin NO_JEMALLOC_TESTS=1 JEMALLOC_SYS_VERIFY_CONFIGURE=1
|
2018-05-03 16:25:21 +00:00
|
|
|
os: osx
|
2018-10-24 13:25:24 +00:00
|
|
|
osx_image: xcode10
|
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 (beta)"
|
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-07-11 18:29:10 +00:00
|
|
|
rust: beta
|
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
|
|
|
|
2018-10-24 11:53:00 +00:00
|
|
|
# TOOLING
|
2018-10-17 13:29:38 +00:00
|
|
|
- name: "Documentation"
|
2018-05-03 16:25:21 +00:00
|
|
|
install: pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
|
2018-11-05 19:15:59 +00:00
|
|
|
script: RUSTDOCFLAGS="--cfg jemallocator_docs" cargo doc
|
2018-10-24 09:06:16 +00:00
|
|
|
after_success: travis-cargo --only nightly doc-upload
|
2018-10-30 19:34:36 +00:00
|
|
|
- name: "rustfmt"
|
|
|
|
install: true
|
|
|
|
rust: nightly
|
|
|
|
before_script: rustup component add rustfmt-preview
|
|
|
|
script: cargo fmt --all -- --check
|
2018-11-03 16:01:27 +00:00
|
|
|
- name: "clippy"
|
|
|
|
install: true
|
|
|
|
rust: nightly
|
2018-11-04 17:48:24 +00:00
|
|
|
script: |
|
|
|
|
if rustup component add clippy-preview; then
|
|
|
|
cargo clippy -p jemalloc-sys -- -D clippy::pedantic
|
|
|
|
cargo clippy -p jemallocator -- -D clippy::pedantic
|
|
|
|
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
|
|
|
env:
|
|
|
|
global:
|
2017-05-30 04:58:12 +00:00
|
|
|
- secure: "2Z1z4ir++XEQb9eegYTMolsNfTo1aATric2k4KfvRgnG1nAvvccf1Jg0828PVeqqD6w5f+X52AVT4bTDXbSL5L+/cTiBuVmY3943nyNOgHxFBTbVlnLtGnh18bb7AQAhyH1L9KjiLptMtFUfIg3TQ9r0QS+cBEJMFiE8BuuQMq/uPZYF3QMuV8W+9AwnqZPgdZV4q7LRnx2gHyVKifRfa4v0TxJA+fY5euON8CKemw12yVTZyNS5WUq6GLvQa5KsSYOSAIYizxz8Mze8plQytc6VhF3OuFyJ72u5LAx+szyxIu8zNAkyNeUqI1/V1gnlhWbZfov6KV56qoV9U8+xKp1J/nCXdabHEO/saOgWk4XgSSc7JNsT1PMPKT18r7JwNha0DS2onWBbegYMV0YXyH/WVAM+oXvhZAj7WPz5bHRbgkatGmBZD2jOjRQxzSugJsZzsmrKbWm8lIoyJGdNxTn5CisYElZvP1CV1OFaQBkaLfmnlpbJ0NQXpQdnpgXuLvI7sXptyn0Bjt41JQclB2BU98SrEiR0hPlkh8m4fH/QpQ8WdXEtvKXTX8UtG5RPW0UvTZVZtrU4Weyu2Hctj2D/hkXywtBXp7mUhB21fBGiaEc+vh6Q2OrZPrwoAj3YWfLlNBjFmfKmUwXXLno4FLLUujFmmypgs4Qit5HtzwQ="
|
2016-01-21 01:03:24 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|