aboutsummaryrefslogtreecommitdiff
path: root/ci/script.sh
diff options
context:
space:
mode:
authorHugo van der Wijst <hugo@wij.st>2019-02-10 15:25:33 -0800
committerJorge Aparicio <jorge@japaric.io>2019-02-16 00:23:01 +0100
commit577d188f72398461650a4e76d81396bf0abea0f4 (patch)
tree039c3c5201032016f1497cbf9e2fa110a195e40a /ci/script.sh
parenta654d13eefa846b9dc7fcdc1ccf5af43fc33834e (diff)
Make generated names stable when sorting.
Diffstat (limited to 'ci/script.sh')
-rw-r--r--ci/script.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/ci/script.sh b/ci/script.sh
index 1bb0ae2..4b9cd22 100644
--- a/ci/script.sh
+++ b/ci/script.sh
@@ -27,13 +27,15 @@ arm_example() {
else
cargo $COMMAND $CARGO_FLAGS
fi
- arm-none-eabi-objcopy -O ihex target/$TARGET/$BUILD_MODE/examples/$EXAMPLE ${EXAMPLE}_${FEATURES_STR}${BUILD_MODE}_${BUILD_NUM}.hex
+ arm-none-eabi-objcopy -O ihex target/$TARGET/$BUILD_MODE/examples/$EXAMPLE ci/builds/${EXAMPLE}_${FEATURES_STR}${BUILD_MODE}_${BUILD_NUM}.hex
}
main() {
local T=$TARGET
+ mkdir -p ci/builds
+
if [ $T = x86_64-unknown-linux-gnu ]; then
# compile-fail and compile-pass tests
case $TRAVIS_RUST_VERSION in
@@ -138,16 +140,16 @@ main() {
if [ $ex != types ]; then
arm_example "build" $ex "debug" "" "2"
- cmp ${ex}_debug_1.hex ${ex}_debug_2.hex
+ cmp ci/builds/${ex}_debug_1.hex ci/builds/${ex}_debug_2.hex
arm_example "build" $ex "release" "" "2"
- cmp ${ex}_release_1.hex ${ex}_release_2.hex
+ cmp ci/builds/${ex}_release_1.hex ci/builds/${ex}_release_2.hex
fi
if [ $TARGET != thumbv6m-none-eabi ]; then
arm_example "build" $ex "debug" "timer-queue" "2"
- cmp ${ex}_timer-queue_debug_1.hex ${ex}_timer-queue_debug_2.hex
+ cmp ci/builds/${ex}_timer-queue_debug_1.hex ci/builds/${ex}_timer-queue_debug_2.hex
arm_example "build" $ex "release" "timer-queue" "2"
- cmp ${ex}_timer-queue_release_1.hex ${ex}_timer-queue_release_2.hex
+ cmp ci/builds/${ex}_timer-queue_release_1.hex ci/builds/${ex}_timer-queue_release_2.hex
fi
done
esac