Chenge ALL_TARGETS list initializer.
[betaflight.git] / fake_travis_build.sh
blobe35aa4ee1462cd8a5ae4ed0cd943e84caa704d3b
1 #!/bin/bash
3 targets=("PUBLISHMETA=True" \
4 "RUNTESTS=True" \
5 "TARGET=CC3D" \
6 "TARGET=CC3D_OPBL" \
7 "TARGET=CHEBUZZF3" \
8 "TARGET=CJMCU" \
9 "TARGET=COLIBRI_RACE" \
10 "TARGET=EUSTM32F103RC" \
11 "TARGET=SPRACINGF3" \
12 "TARGET=NAZE" \
13 "TARGET=NAZE32PRO" \
14 "TARGET=OLIMEXINO" \
15 "TARGET=PORT103R" \
16 "TARGET=RMDO" \
17 "TARGET=SPARKY" \
18 "TARGET=STM32F3DISCOVERY" \
19 "TARGET=ALIENWIIF1" \
20 "TARGET=ALIENWIIF3")
22 #fake a travis build environment
23 export TRAVIS_BUILD_NUMBER=$(date +%s)
24 export BUILDNAME=${BUILDNAME:=fake_travis}
25 export TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG:=$USER/simulated}
27 for target in "${targets[@]}"
29 unset RUNTESTS PUBLISHMETA TARGET
30 eval "export $target"
31 make -f Makefile clean
32 ./.travis.sh
33 done