This repository was archived by the owner on Mar 17, 2025. It is now read-only.
File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
- language : c
1
+ language : c++
2
2
sudo : false
3
3
addons :
4
4
apt :
@@ -7,16 +7,19 @@ addons:
7
7
packages :
8
8
- g++-4.8
9
9
env :
10
- - ARDUINO_VERSION=1.6.8 ARDUINO_ESP8266_VERSION=2.1.0 GCC_VERSION=4.8 ARDUINO_ROOT=${HOME}/arduino-${ARDUINO_VERSION} ARDUINO_ESP8266_ROOT=${ARDUINO_ROOT}/hardware/esp8266com/esp8266 ARDUINO_HOME=${HOME}/Arduino CXX=g++-${GCC_VERSION}
11
- - ARDUINO_VERSION=1.6.8 ARDUINO_ESP8266_VERSION=2.2.0-rc1 GCC_VERSION=4.8 ARDUINO_ROOT=${HOME}/arduino-${ARDUINO_VERSION} ARDUINO_ESP8266_ROOT=${ARDUINO_ROOT}/hardware/esp8266com/esp8266 ARDUINO_HOME=${HOME}/Arduino CXX=g++-${GCC_VERSION}
12
- - ARDUINO_VERSION=nightly ARDUINO_ESP8266_VERSION=master GCC_VERSION=4.8 ARDUINO_ROOT=${HOME}/arduino-${ARDUINO_VERSION} ARDUINO_ESP8266_ROOT=${ARDUINO_ROOT}/hardware/esp8266com/esp8266 ARDUINO_HOME=${HOME}/Arduino CXX=g++-${GCC_VERSION}
10
+ - ARDUINO_VERSION=1.6.8 ARDUINO_ESP8266_VERSION=2.1.0 ARDUINO_ROOT=${HOME}/arduino-${ARDUINO_VERSION} ARDUINO_ESP8266_ROOT=${ARDUINO_ROOT}/hardware/esp8266com/esp8266 ARDUINO_HOME=${HOME}/Arduino
11
+ - ARDUINO_VERSION=1.6.8 ARDUINO_ESP8266_VERSION=2.2.0-rc1 ARDUINO_ROOT=${HOME}/arduino-${ARDUINO_VERSION} ARDUINO_ESP8266_ROOT=${ARDUINO_ROOT}/hardware/esp8266com/esp8266 ARDUINO_HOME=${HOME}/Arduino
12
+ - ARDUINO_VERSION=nightly ARDUINO_ESP8266_VERSION=master ARDUINO_ROOT=${HOME}/arduino-${ARDUINO_VERSION} ARDUINO_ESP8266_ROOT=${ARDUINO_ROOT}/hardware/esp8266com/esp8266 ARDUINO_HOME=${HOME}/Arduino
13
13
install :
14
+ - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
14
15
- ( cd ${HOME} && curl -O https://downloads.arduino.cc/arduino-${ARDUINO_VERSION}-linux64.tar.xz && tar xvf arduino-${ARDUINO_VERSION}-linux64.tar.xz )
15
16
- git clone --branch ${ARDUINO_ESP8266_VERSION} https://github.com/esp8266/Arduino.git ${ARDUINO_ESP8266_ROOT}
17
+ - git submodule init && git submodule update
16
18
- ( cd ${ARDUINO_ESP8266_ROOT}/tools && python get.py )
17
19
before_script :
18
20
- mkdir -p ${ARDUINO_HOME}/libraries
19
21
- ( cd ${ARDUINO_HOME}/libraries && ln -s ${TRAVIS_BUILD_DIR} firebase-arduino && ln -s ${TRAVIS_BUILD_DIR}/src/third-party/arduino-json-5.2 ArduinoJson )
20
22
script :
21
23
- ${ARDUINO_ROOT}/arduino-builder -verbose -hardware ${ARDUINO_ROOT}/hardware/ -tools ${ARDUINO_ESP8266_ROOT}/tools/ -tools ${ARDUINO_ROOT}/tools-builder/ -fqbn esp8266com:esp8266:nodemcuv2 -libraries ${ARDUINO_HOME}/libraries/ -prefs build.flash_ld=${ARDUINO_ESP8266_ROOT}/tools/sdk/ld/eagle.flash.4m.ld -prefs build.flash_freq=40 -prefs build.flash_size=4M examples/FirebaseDemo_ESP8266/FirebaseDemo_ESP8266.ino
22
- - cd test && make check
24
+ - (cd test && make check)
25
+ - (cd test/modem/ && make test)
Original file line number Diff line number Diff line change @@ -91,11 +91,13 @@ class FirebaseCall {
91
91
const char * method, const String& path,
92
92
const String& data = " " ,
93
93
FirebaseHttpClient* http = NULL );
94
+ virtual ~FirebaseCall () {}
95
+
94
96
virtual const FirebaseError& error () const {
95
97
return error_;
96
98
}
97
99
98
- virtual const String& response () {
100
+ virtual const String& response () const {
99
101
return response_;
100
102
}
101
103
@@ -134,6 +136,7 @@ class FirebasePush : public FirebaseCall {
134
136
FirebasePush () {}
135
137
FirebasePush (const String& host, const String& auth,
136
138
const String& path, const String& value, FirebaseHttpClient* http = NULL );
139
+ virtual ~FirebasePush () {}
137
140
138
141
virtual const String& name () const {
139
142
return name_;
@@ -156,6 +159,7 @@ class FirebaseStream : public FirebaseCall {
156
159
FirebaseStream () {}
157
160
FirebaseStream (const String& host, const String& auth,
158
161
const String& path, FirebaseHttpClient* http = NULL );
162
+ virtual ~FirebaseStream () {}
159
163
160
164
// Return if there is any event available to read.
161
165
virtual bool available ();
You can’t perform that action at this time.
0 commit comments