aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-semihosting/ci
diff options
context:
space:
mode:
authorGravatar Jonas Schievink <jonasschievink@gmail.com> 2020-08-31 23:16:21 +0200
committerGravatar Jonas Schievink <jonasschievink@gmail.com> 2020-10-13 21:30:44 +0200
commit10b29d3a4fc43503c25fb2c7ffbeaad44c2fb103 (patch)
treeceb6fc008cfbcc430a4254464d0e3341c34796e1 /cortex-m-semihosting/ci
parentf77d64a2d1505335e4a170d03a40993bb066fd02 (diff)
downloadcortex-m-10b29d3a4fc43503c25fb2c7ffbeaad44c2fb103.tar.gz
cortex-m-10b29d3a4fc43503c25fb2c7ffbeaad44c2fb103.tar.zst
cortex-m-10b29d3a4fc43503c25fb2c7ffbeaad44c2fb103.zip
Import semihosting crates as-is
Diffstat (limited to 'cortex-m-semihosting/ci')
-rw-r--r--cortex-m-semihosting/ci/install.sh13
-rw-r--r--cortex-m-semihosting/ci/script.sh15
2 files changed, 28 insertions, 0 deletions
diff --git a/cortex-m-semihosting/ci/install.sh b/cortex-m-semihosting/ci/install.sh
new file mode 100644
index 0000000..e63e805
--- /dev/null
+++ b/cortex-m-semihosting/ci/install.sh
@@ -0,0 +1,13 @@
+set -euxo pipefail
+
+main() {
+ if [ $TARGET != x86_64-unknown-linux-gnu ]; then
+ rustup target add $TARGET
+ fi
+
+ mkdir gcc
+
+ curl -L https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2018q2/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2?revision=bc2c96c0-14b5-4bb4-9f18-bceb4050fee7?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,7-2018-q2-update | tar --strip-components=1 -C gcc -xj
+}
+
+main
diff --git a/cortex-m-semihosting/ci/script.sh b/cortex-m-semihosting/ci/script.sh
new file mode 100644
index 0000000..dc0be46
--- /dev/null
+++ b/cortex-m-semihosting/ci/script.sh
@@ -0,0 +1,15 @@
+set -euxo pipefail
+
+main() {
+ cargo check --target $TARGET
+
+ if [ $TRAVIS_RUST_VERSION = nightly ]; then
+ cargo check --target $TARGET --features inline-asm
+ fi
+
+ if [ $TARGET = x86_64-unknown-linux-gnu ]; then
+ ./check-blobs.sh
+ fi
+}
+
+main