]> git.lizzy.rs Git - rust.git/blob - src/ci/scripts/run-build-from-ci.sh
:arrow_up: rust-analyzer
[rust.git] / src / ci / scripts / run-build-from-ci.sh
1 #!/bin/bash
2 # Start the CI build. You shouldn't run this locally: call either src/ci/run.sh
3 # or src/ci/docker/run.sh instead.
4
5 set -euo pipefail
6 IFS=$'\n\t'
7
8 source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
9
10 export CI="true"
11 export SRC=.
12
13 # Remove any preexisting rustup installation since it can interfere
14 # with the cargotest step and its auto-detection of things like Clippy in
15 # the environment
16 rustup self uninstall -y || true
17 if [ -z "${IMAGE+x}" ]; then
18     src/ci/run.sh
19 else
20     src/ci/docker/run.sh "${IMAGE}"
21 fi