forked from cleanflight/cleanflight
-
Notifications
You must be signed in to change notification settings - Fork 19
/
fake_travis_build.sh
executable file
·43 lines (39 loc) · 965 Bytes
/
fake_travis_build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
targets=("PUBLISHMETA=True" \
"TARGET=CC3D" \
"TARGET=CC3D_OPBL" \
"TARGET=COLIBRI_RACE" \
"TARGET=LUX_RACE" \
"TARGET=SPRACINGF3" \
"TARGET=SPRACINGF3EVO" \
"TARGET=SPRACINGF3MINI" \
"TARGET=OMNIBUS" \
"TARGET=NAZE" \
"TARGET=AFROMINI" \
"TARGET=BEEBRAIN" \
"TARGET=RMDO" \
"TARGET=SPARKY" \
"TARGET=MOTOLAB" \
"TARGET=PIKOBLX" \
"TARGET=IRCFUSIONF3" \
"TARGET=ALIENFLIGHTF1" \
"TARGET=ALIENFLIGHTF3" \
"TARGET=DOGE" \
"TARGET=SINGULARITY" \
"TARGET=SIRINFPV" \
"TARGET=X_RACERSPI" \
"TARGET=RCEXPLORERF3")
#fake a travis build environment
export TRAVIS_BUILD_NUMBER=$(date +%s)
export BUILDNAME=${BUILDNAME:=fake_travis}
export TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG:=$USER/simulated}
for target in "${targets[@]}"
do
unset RUNTESTS PUBLISHMETA TARGET
echo
echo
echo "BUILDING '$target'"
eval "export $target"
make -f Makefile clean
./.travis.sh
done