Skip to content

Commit

Permalink
Update CI Scripts (#11)
Browse files Browse the repository at this point in the history
* Updated CI scripts

* adding new targets
  • Loading branch information
lucasbrendel authored Sep 16, 2019
1 parent 824ad81 commit b8ce382
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,47 @@
language: rust
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
- dos2unix
- gcc-arm-none-eabi
matrix:
include:
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
addons:
apt:
packages:
- dos2unix
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake

# - env: TARGET=thumbv7em-none-eabi
# rust: nightly
# addons:
# apt:
# packages:
# - gcc-arm-none-eabi

# - env: TARGET=thumbv7em-none-eabihf
# rust: nightly
# addons:
# apt:
# packages:
# - gcc-arm-none-eabi
- env: TARGET=x86_64-unknown-linux-gnu
rust: beta
- env: TARGET=x86_64-unknown-linux-gnu
rust: stable
- env: TARGET=thumbv7em-none-eabi
rust: nightly
- env: TARGET=thumbv7em-none-eabi
rust: beta
- env: TARGET=thumbv7em-none-eabi
rust: stable
- env: TARGET=thumbv7em-none-eabihf
rust: nightly
- env: TARGET=thumbv7em-none-eabihf
rust: beta
- env: TARGET=thumbv7em-none-eabihf
rust: stable

before_install: set -e
install:
- rustup target add $TARGET
- cargo install cargo-update || echo "cargo-update already installed"
- cargo install cargo-travis || echo "cargo-travis already installed"
# - cargo install cargo-travis || echo "cargo-travis already installed"
- cargo install-update -a
script:
- cargo check --target $TARGET
- cargo build --verbose --target $TARGET --all && cargo coverage --verbose && bash <(curl -s https://codecov.io/bash) -s target/kcov
- cargo coverage --verbose
- cargo test --target $TARGET --release --verbose --all
- cargo doc --verbose --no-deps --document-private-items
- cargo build --verbose --target $TARGET --all # && cargo coverage --verbose && bash <(curl -s https://codecov.io/bash) -s target/kcov
# - cargo coverage --verbose
# - cargo test --target $TARGET --release --verbose --all
# - cargo doc --verbose --no-deps --document-private-items
# - cargo doc-upload
after_script: set +e
cache: cargo
Expand Down

0 comments on commit b8ce382

Please sign in to comment.