File tree Expand file tree Collapse file tree 3 files changed +39
-25
lines changed Expand file tree Collapse file tree 3 files changed +39
-25
lines changed Original file line number Diff line number Diff line change 1
1
language : rust
2
- rust : nightly
3
2
4
3
addons :
5
4
apt :
6
5
packages :
7
6
- qemu-system-arm
8
7
8
+ matrix :
9
+ include :
10
+ - rust : beta
11
+
12
+ matrix :
13
+ include :
14
+ - rust : nightly
15
+
9
16
install :
10
17
- bash ci/install.sh
11
18
Original file line number Diff line number Diff line change @@ -66,33 +66,39 @@ main() {
66
66
edition_check
67
67
popd
68
68
69
- pushd app4
70
- cargo build
71
- qemu_check target/thumbv7m-none-eabi/debug/app
72
- edition_check
73
- popd
69
+ # NOTE(nightly) this will require nightly until core::arch::arm::udf is stabilized
70
+ if [ $TRAVIS_RUST_VERSION = nightly ]; then
71
+ pushd app4
72
+ cargo build
73
+ qemu_check target/thumbv7m-none-eabi/debug/app
74
+ edition_check
75
+ popd
76
+ fi
74
77
75
78
popd
76
79
77
80
# # exception handling
78
- pushd exceptions
79
-
80
- # check that the disassembly matches
81
- pushd app
82
- diff app.objdump \
83
- <( cargo objdump --bin app --release -- -d -no-show-raw-insn -print-imm-hex)
84
- diff app.vector_table.objdump \
85
- <( cargo objdump --bin app --release -- -s -j .vector_table)
86
- edition_check
87
- popd
88
-
89
- # check that it builds
90
- pushd app2
91
- cargo build
92
- edition_check
93
- popd
94
-
95
- popd
81
+ # NOTE(nightly) this will require nightly until core::arch::arm::udf is stabilized
82
+ if [ $TRAVIS_RUST_VERSION = nightly ]; then
83
+ pushd exceptions
84
+
85
+ # check that the disassembly matches
86
+ pushd app
87
+ diff app.objdump \
88
+ <( cargo objdump --bin app --release -- -d -no-show-raw-insn -print-imm-hex)
89
+ diff app.vector_table.objdump \
90
+ <( cargo objdump --bin app --release -- -s -j .vector_table)
91
+ edition_check
92
+ popd
93
+
94
+ # check that it builds
95
+ pushd app2
96
+ cargo build
97
+ edition_check
98
+ popd
99
+
100
+ popd
101
+ fi
96
102
}
97
103
98
104
# checks that 2018 idioms are being used
Original file line number Diff line number Diff line change @@ -65,8 +65,9 @@ $ # Rust toolchain
65
65
$ # If you start from scratch, get rustup from https://rustup.rs/
66
66
$ rustup default beta
67
67
68
+ $ # toolchain should be newer than this one
68
69
$ rustc -V
69
- rustc 1.30.0-beta (????????? 2018-09-1? )
70
+ rustc 1.30.0-beta.1 (14f51b05d 2018-09-18 )
70
71
71
72
$ rustup target add thumbv7m-none-eabi
72
73
You can’t perform that action at this time.
0 commit comments