Merge pull request #652 from blckmn/usb_vcp_fix
[betaflight.git] / fake_travis_build.sh
blob1a2c9af9090cff6b18da7c3156dce21b8a2f07d8
1 #!/bin/bash
3 targets=("PUBLISHMETA=True" \
4 "TARGET=CC3D" \
5 "TARGET=CC3D_OPBL" \
6 "TARGET=COLIBRI_RACE" \
7 "TARGET=LUX_RACE" \
8 "TARGET=SPRACINGF3" \
9 "TARGET=SPRACINGF3EVO" \
10 "TARGET=SPRACINGF3MINI" \
11 "TARGET=OMNIBUS" \
12 "TARGET=NAZE" \
13 "TARGET=AFROMINI" \
14 "TARGET=RMDO" \
15 "TARGET=SPARKY" \
16 "TARGET=MOTOLAB" \
17 "TARGET=PIKOBLX" \
18 "TARGET=IRCFUSIONF3" \
19 "TARGET=ALIENFLIGHTF1" \
20 "TARGET=ALIENFLIGHTF3" \
21 "TARGET=DOGE" \
22 "TARGET=SINGULARITY" \
23 "TARGET=SIRINFPV" \
24 "TARGET=X_RACERSPI")
28 #fake a travis build environment
29 export TRAVIS_BUILD_NUMBER=$(date +%s)
30 export BUILDNAME=${BUILDNAME:=fake_travis}
31 export TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG:=$USER/simulated}
33 for target in "${targets[@]}"
35 unset RUNTESTS PUBLISHMETA TARGET
36 echo
37 echo
38 echo "BUILDING '$target'"
39 eval "export $target"
40 make -f Makefile clean
41 ./.travis.sh
42 done