summaryrefslogtreecommitdiff
path: root/ci/script.sh
blob: 080e7569fe283e53ad9fff02d5201a66b7be585d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
set -ex

main() {
    case $TARGET in
        thumbv*-none-eabi*)
            xargo check --target $TARGET
            ;;
        *)
            cargo test --target $TARGET
            ;;
    esac
}

# NOTE See the NOTE in `install.sh`
if [ $TRAVIS_BRANCH != master ] || [ $TRAVIS_EVENT_TYPE = cron ]; then
    main
fi