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

main() {
    cargo generate-lockfile

    case $TARGET in
        thumbv*-none-eabi*)
            cross build --target $TARGET
            ;;
        *)
            cross test --target $TARGET
            ;;
    esac
}

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