From 8e14d2772d5966ce165e9d54cdfff5e87a3763c8 Mon Sep 17 00:00:00 2001 From: Evan Cameron Date: Tue, 22 Oct 2019 10:14:50 -0400 Subject: [PATCH] Remove travis for now --- .travis.yml | 71 ----------------------------------------------------- Cargo.toml | 9 ------- README.md | 1 - build.sh | 13 ---------- 4 files changed, 94 deletions(-) delete mode 100644 .travis.yml delete mode 100755 build.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f634c53..0000000 --- a/.travis.yml +++ /dev/null @@ -1,71 +0,0 @@ -# Based on the "trust" template v0.1.2 -# https://github.com/japaric/trust/tree/v0.1.2 - -dist: trusty -language: rust -rust: - - stable - - beta - - nightly -sudo: required - -matrix: - include: - # Raspberry Pi 1 - - env: TARGET=arm-unknown-linux-gnueabi DISABLE_EXAMPLES=1 - - # Raspberry Pi 2, 3, etc - - env: TARGET=armv7-unknown-linux-gnueabihf DISABLE_EXAMPLES=1 - - env: TARGET=x86_64-unknown-linux-gnu DISABLE_EXAMPLES=1 - - env: TARGET=x86_64-unknown-linux-musl DISABLE_EXAMPLES=1 - - # Bare metal - - env: TARGET=thumbv6m-none-eabi DISABLE_EXAMPLES=1 - - env: TARGET=thumbv7em-none-eabi - - env: TARGET=thumbv7em-none-eabihf - - env: TARGET=thumbv7m-none-eabi - - - rust: nightly - env: TARGET=thumbv7m-none-eabi - - - rust: beta - env: TARGET=thumbv7m-none-eabi - - # Always supply a target - exclude: - - rust: stable - - rust: beta - - rust: nightly - - allow_failures: - - rust: nightly - env: TARGET=thumbv7m-none-eabi - -before_install: - - pip install linkchecker --user - -install: - - rustup component add rust-src - - rustup component add rustfmt - - | - SYSROOT=$(rustc --print sysroot) - if [[ ! "$SYSROOT" =~ "$TARGET" ]]; then - rustup target add $TARGET - else - echo "Target $TARGET is already installed" - fi - - source ~/.cargo/env || true - -script: - - ./build.sh - - cargo doc --all-features --target $TARGET - - linkchecker target/$TARGET/doc/rotary_encoder_hal/index.html - -cache: cargo -before_cache: - # Travis can't cache files that are not readable by "others" - - chmod -R a+r $HOME/.cargo - -notifications: - email: - on_success: never diff --git a/Cargo.toml b/Cargo.toml index ce77c35..2b41aca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,12 +15,3 @@ either = { version = "1.5.3", default-features = false } [dev-dependencies] version-sync = "0.8" -cortex-m = "0.6.1" -cortex-m-rt = "0.6.10" - -[dev-dependencies.stm32f3xx-hal] -version = "0.3.0" -features = ["rt"] - -[badges] -travis-ci = { repository = "leshow/rotary-encoder-hal", branch = "master", service = "github" } \ No newline at end of file diff --git a/README.md b/README.md index 3a78b17..35e5928 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # rotary-encoder-hal -[![Build Status](https://travis-ci.com/leshow/rotary-encoder-hal.svg?branch=master)](https://travis-ci.com/leshow/rotary-encoder-hal?branch=master) [![Crate](https://img.shields.io/crates/v/rotary-encoder-hal.svg)](https://crates.io/crates/rotary-encoder-hal) [![API](https://docs.rs/rotary-encoder-hal/badge.svg)](https://docs.rs/rotary-encoder-hal) diff --git a/build.sh b/build.sh deleted file mode 100755 index 245bd13..0000000 --- a/build.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -set -e - -cargo fmt --all -- --check -cargo build --target $TARGET --all-features --release - -cargo test --lib --target x86_64-unknown-linux-gnu -cargo test --doc --target x86_64-unknown-linux-gnu - -if [ -z $DISABLE_EXAMPLES ]; then - cargo build --target $TARGET --all-features --examples -fi \ No newline at end of file