summaryrefslogtreecommitdiffstats
path: root/ci/script.sh
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2019-07-21 22:07:06 -0400
committerDan Davison <dandavison7@gmail.com>2019-07-22 09:52:10 -0400
commitbd12fbe58658279f02fd5ef8816f2aef12628f85 (patch)
tree4ce171062a2321bdd48ad21c0047fe45119304d5 /ci/script.sh
parent334d4ed0d665560838cd3798ec9195791b7c9b33 (diff)
Update Windows build0.0.5
Diffstat (limited to 'ci/script.sh')
-rwxr-xr-xci/script.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/ci/script.sh b/ci/script.sh
new file mode 100755
index 00000000..3b717e5f
--- /dev/null
+++ b/ci/script.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+set -ex
+
+# Incorporate TARGET env var to the build and test process
+cargo build --target "$TARGET" --verbose
+
+# We cannot run arm executables on linux
+if [[ $TARGET != arm-unknown-linux-gnueabihf ]] && [[ $TARGET != aarch64-unknown-linux-gnu ]]; then
+ cargo test --target "$TARGET" --verbose
+
+ cargo run --target "$TARGET" -- < /dev/null
+fi