fake_travis_build.sh 637 Bytes
Newer Older
1
2
3
4
5
6
7
8
#!/bin/bash

targets=("PUBLISHMETA=True" "RUNTESTS=True" \
"TARGET=CC3D" "TARGET=CC3D OPBL=yes" "TARGET=CHEBUZZF3" "TARGET=CJMCU" \
"TARGET=EUSTM32F103RC" "TARGET=SPRACINGF3" "TARGET=NAZE" "TARGET=NAZE32PRO" \
"TARGET=OLIMEXINO" "TARGET=PORT103R" "TARGET=SPARKY" "TARGET=STM32F3DISCOVERY" \
"TARGET=ALIENWIIF1" "TARGET=ALIENWIIF3")

9
#fake a travis build environment
10
export TRAVIS_BUILD_NUMBER=$(date +%s)
11
12
export BUILDNAME=${BUILDNAME:=fake_travis}
export TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG:=$USER/simulated}
13

14
15
for target in "${targets[@]}"
do
16
	unset RUNTESTS PUBLISHMETA TARGET OPBL
17
18
19
20
	eval "export $target"
	make clean
	./.travis.sh
done