summaryrefslogtreecommitdiff
path: root/ci/install.sh
blob: a0cbf4322e4776cee22bb48954398231846c23bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set -euxo pipefail

main() {
    case $TARGET in
        thumbv*-none-eabi*)
            rustup target add $TARGET
            ;;
    esac
}

# NOTE(TRAVIS_BRANCH) Travis is configured to only build *pushes* (not PRs)
if [ $TRAVIS_BRANCH != master ] || [ $TRAVIS_EVENT_TYPE = cron ]; then
    main
fi