mastodon API rust lib elefren, fixed and updated. and also all ASYNC! NB. most examples are now wrong.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
elefren-fork/.travis.yml

43 lines
1.1 KiB

sudo: required
8 years ago
language: rust
dist: trusty
addons:
apt:
packages:
6 years ago
- libssl-dev
cache:
directories:
- $HOME/.cargo
env:
- ELEFREN_FEATURES="--features toml"
- ELEFREN_FEATURES="--features all"
- ELEFREN_FEATURES=""
6 years ago
os:
- linux
- osx
8 years ago
rust:
- stable
- beta
- nightly
before_script:
- |
if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then rustup component add rustfmt-preview; fi
- |
if [[ "$TRAVIS_RUST_VERSION" == stable ]] 2> /dev/null && [ -z "$ELEFREN_FEATURES" ] 2>/dev/null && [[ "$TRAVIS_OS_NAME" == "linux" ]] 2>/dev/null && [[ -z "$(which cargo-tarpaulin)" ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
fi
script:
- |
if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then cargo fmt --all -- --check; fi
- cargo test $ELEFREN_FEATURES
after_success: |
6 years ago
if [[ "$TRAVIS_RUST_VERSION" == stable ]] 2> /dev/null && [ -z "$ELEFREN_FEATURES" ] 2>/dev/null && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID --features toml
fi
8 years ago
matrix:
allow_failures:
- rust: nightly
notifications:
email:
on_success: never