Skip to content
Snippets Groups Projects
Commit 054f291b authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

add CI

parent e841c8a6
No related branches found
No related tags found
No related merge requests found
language: rust
matrix:
include:
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
- env: TARGET=thumbv6m-none-eabi
rust: nightly
addons:
apt:
sources:
- debian-sid
packages:
- binutils-arm-none-eabi
- env: TARGET=thumbv7m-none-eabi
rust: nightly
addons:
apt:
sources:
- debian-sid
packages:
- binutils-arm-none-eabi
before_install: set -e
install:
- bash ci/install.sh
script:
- bash ci/script.sh
after_script: set +e
cache: cargo
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
branches:
only:
# release tags
- /^v\d+\.\d+\.\d+.*$/
- auto
- master
- try
notifications:
email:
on_success: never
set -euxo pipefail
main() {
case $TARGET in
thumb*m-none-eabi)
local vers=0.3.8
cargo install --list | grep "xargo v$vers" || \
( cd .. && cargo install xargo -f --vers $vers )
rustup component list | grep 'rust-src.*installed' || \
rustup component add rust-src
;;
*)
;;
esac
}
main
set -euxo pipefail
main() {
case $TARGET in
thumb*m-none-eabi)
xargo check --target $TARGET
;;
*)
cargo check --target $TARGET
;;
esac
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment