Skip to content

Commit 6eca8e4

Browse files
authored
Update travis.sh
1 parent 0cdfa27 commit 6eca8e4

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

travis.sh

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,2 @@
11
#!/bin/bash
22
echo "WRITING CONFIGURATION FILE"
3-
4-
touch src/setup.h
5-
6-
echo -e "#define DEVICE_MODEL \"Travis\"\n$(cat config.example.h)" > config.h
7-
8-
echo "Wrote Travis device model to config.h"
9-
10-
if [ -z "$RGB_TYPE" ]; then
11-
RGB_TYPE="RGB"
12-
fi
13-
14-
echo -e "#define $RGB_TYPE\n$(cat config.h)" > config.h
15-
16-
echo "Wrote #define $RGB_TYPE to config.h"
17-
18-
if [ -n "$REMOTE_TYPE" ]; then
19-
echo -e "#define $REMOTE_TYPE\n$(cat config.h)" > config.h
20-
echo "Wrote #define $REMOTE_TYPE to config.h"
21-
fi
22-
23-
if [ -n "$MQTT_MODE" ]; then
24-
echo -e "#define $MQTT_MODE\n$(cat config.h)" > config.h
25-
echo "Wrote #define $MQTT_MODE to config.h"
26-
fi
27-
28-
if [ -n "$MQTT_DISCOVERY" ]; then
29-
echo -e "#define $MQTT_DISCOVERY\n$(cat config.h)" > config.h
30-
echo "Wrote #define $MQTT_DISCOVERY to config.h"
31-
fi
32-
33-
echo "FINISHED WRITING CONFIGURATION FILE"

0 commit comments

Comments
 (0)