-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
254 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
language: rust | ||
|
||
matrix: | ||
include: | ||
- env: TARGET=thumbv6m-none-eabi | ||
rust: nightly | ||
|
||
- env: TARGET=thumbv7m-none-eabi | ||
rust: nightly | ||
|
||
- env: TARGET=thumbv7em-none-eabi | ||
rust: nightly | ||
|
||
- env: TARGET=thumbv7em-none-eabihf | ||
rust: nightly | ||
|
||
before_install: set -e | ||
|
||
install: | ||
- bash ci/install.sh | ||
|
||
script: | ||
- bash ci/script.sh | ||
|
||
after_script: set +e | ||
|
||
after_success: | ||
- bash ci/after_success.sh | ||
|
||
cache: cargo | ||
|
||
before_cache: | ||
# Travis can't cache files that are not readable by "others" | ||
- chmod -R a+r $HOME/.cargo | ||
|
||
branches: | ||
only: | ||
- staging | ||
- trying | ||
|
||
notifications: | ||
email: | ||
on_success: never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
status = [ | ||
"continuous-integration/travis-ci/push", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set -euxo pipefail | ||
|
||
main() { | ||
rustup target add $TARGET | ||
|
||
cargo install cargo-edit || true | ||
} | ||
|
||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
set -euxo pipefail | ||
|
||
main() { | ||
local td=$(mktemp -d) | ||
|
||
git clone . $td | ||
pushd $td | ||
|
||
cat >memory.x <<'EOF' | ||
MEMORY | ||
{ | ||
/* NOTE K = KiBi = 1024 bytes */ | ||
FLASH : ORIGIN = 0x08000000, LENGTH = 256K | ||
RAM : ORIGIN = 0x20000000, LENGTH = 40K | ||
} | ||
EOF | ||
|
||
local examples=( | ||
crash | ||
# device | ||
hello | ||
itm | ||
override-exception-handler | ||
panic | ||
) | ||
for ex in "${examples[@]}"; do | ||
cargo build --target $TARGET --example $ex | ||
cargo build --target $TARGET --example $ex --release | ||
done | ||
|
||
cargo add alloc-cortex-m | ||
|
||
cargo build --target $TARGET --example allocator | ||
cargo build --target $TARGET --example allocator --release | ||
|
||
examples+=( allocator ) | ||
|
||
if [ $TARGET = thumbv7m-none-eabi ]; then | ||
cat >>Cargo.toml <<'EOF' | ||
[dependencies.stm32f103xx] | ||
features = ["rt"] | ||
version = "0.9.0" | ||
EOF | ||
|
||
cargo build --target $TARGET --example device | ||
cargo build --target $TARGET --example device --release | ||
|
||
examples+=( device ) | ||
fi | ||
|
||
IFS=,;eval arm-none-eabi-size target/$TARGET/release/examples/"{${examples[*]}}" | ||
|
||
popd | ||
rm -rf $td | ||
} | ||
|
||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.