summaryrefslogtreecommitdiff
path: root/ci/script.sh
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-08-22 09:19:51 -0600
committerAlan Somers <asomers@gmail.com>2021-08-22 10:33:07 -0600
commitd20fe20af79cc6fa4528a8a170ad50a1319a1fbf (patch)
treedfa5849cb7cfa05df0db3667093ab323b4c0269d /ci/script.sh
parentf3cb6b321fa1e16dc14b9bcdc37f001375a8c85c (diff)
downloadnix-d20fe20af79cc6fa4528a8a170ad50a1319a1fbf.zip
Multiple CI improvements:
* Install cross the easy way, via cargo * Don't test in release mode. Nix contains no release-dependent paths, and release mode testing has to my knowledge never revealed a bug in Nix. * Add Linux powerpc back to CI, fixed by the latest cross. * Check the tests even on platforms that can't run them. * DRY for the Illumos and Redox sections * Cross-check iOS from a Linux VM instead of OSX * Revert the workaround for rust-lang/rustup issue 2774
Diffstat (limited to 'ci/script.sh')
-rw-r--r--ci/script.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/ci/script.sh b/ci/script.sh
deleted file mode 100644
index f998039a..00000000
--- a/ci/script.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-# This script takes care of testing your crate
-
-set -ex
-
-main() {
- # Add a cfg spec to allow disabling specific tests under CI.
- if [ "$CIRRUS_CI" = true ]; then
- export RUSTFLAGS=--cfg=cirrus
- fi
-
- IFS=';' read -ra TARGET_ARRAY <<< "$TARGET"
- for t in "${TARGET_ARRAY[@]}"; do
- # Build debug and release targets
- cross build --target $t
- cross build --target $t --release
-
- if [ ! -z $DISABLE_TESTS ]; then
- continue
- fi
-
- # Run tests on debug and release targets.
- cross test --target $t
- cross test --target $t --release
- done
-}
-
-# we don't run the "test phase" when doing deploys
-if [ -z $CIRRUS_TAG ]; then
- main
-fi