Skip to content

Commit faa7b19

Browse files
committed
Adding travis build
1 parent f8e255b commit faa7b19

File tree

8 files changed

+88
-10
lines changed

8 files changed

+88
-10
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@
2626
*.exe
2727
*.out
2828
*.app
29+
.pioenvs
30+
.piolibdeps
31+
.clang_complete
32+
.gcc-flags.json

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
5+
# Cache PlatformIO packages using Travis CI container-based infrastructure
6+
sudo: false
7+
cache:
8+
directories:
9+
- "~/.platformio"
10+
11+
env:
12+
- SCRIPT=platformioSingle EXAMPLE_NAME=ChannelStatistics EXAMPLE_FOLDER=/ BOARDTYPE=ESP8266 BOARD=d1_mini
13+
14+
15+
install:
16+
- pip install -U platformio
17+
#
18+
# Libraries from PlatformIO Library Registry:
19+
#
20+
# http://platformio.org/lib/show/64/ArduinoJson
21+
- platformio lib -g install 64
22+
23+
script: scripts/travis/$SCRIPT.sh

lib/readme.txt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
This directory is intended for the project specific (private) libraries.
3+
PlatformIO will compile them to static libraries and link to executable file.
4+
5+
The source code of each library should be placed in separate directory, like
6+
"lib/private_lib/[here are source files]".
7+
8+
For example, see how can be organized `Foo` and `Bar` libraries:
9+
10+
|--lib
11+
| |--Bar
12+
| | |--docs
13+
| | |--examples
14+
| | |--src
15+
| | |- Bar.c
16+
| | |- Bar.h
17+
| |--Foo
18+
| | |- Foo.c
19+
| | |- Foo.h
20+
| |- readme.txt --> THIS FILE
21+
|- platformio.ini
22+
|--src
23+
|- main.c
24+
25+
Then in `src/main.c` you should use:
26+
27+
#include <Foo.h>
28+
#include <Bar.h>
29+
30+
// rest H/C/CPP code
31+
32+
PlatformIO will find your libraries automatically, configure preprocessor's
33+
include paths and build them.
34+
35+
More information about PlatformIO Library Dependency Finder
36+
- http://docs.platformio.org/page/librarymanager/ldf.html

library.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name=YoutubeApi
2-
version=1.0
2+
version=1.0.0
33
author=Brian Lough
44
maintainer=Brian Lough <[email protected]>
5-
sentence=A wrapper for the YouTube API for Arduino (works on ESP8266)
6-
paragraph=A wrapper for the YouTube API for Arduino (works on ESP8266)
5+
sentence=A wrapper for the YouTube API for Arduino (supports ESP8266 & WiFi101 boards)
6+
paragraph=Use this library to get YouTube channel statistics
77
category=Communication
88
url=https://github.com/witnessmenow/arduino-youtube-api
99
architectures=*

platformio.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
; PlatformIO Project Configuration File
2+
;
3+
; Build options: build flags, source filter
4+
; Upload options: custom upload port, speed and extra flags
5+
; Library options: dependencies, extra library storages
6+
; Advanced options: extra scripting
7+
;
8+
; Please visit documentation for the other options and examples
9+
; http://docs.platformio.org/page/projectconf.html
10+
11+
[env:d1_mini]
12+
platform = espressif8266
13+
board = d1_mini
14+
framework = arduino

scripts/travis/platformioSingle.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh -eux
2+
3+
platformio ci $PWD/examples/$BOARDTYPE$EXAMPLE_FOLDER$EXAMPLE_NAME/$EXAMPLE_NAME.ino -l '.' -b $BOARD

src/YoutubeApi.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
21
/*
2+
Copyright (c) 2017 Brian Lough. All right reserved.
3+
4+
YoutubeApi - An Arduino wrapper for the YouTube API
35
46
This library is free software; you can redistribute it and/or
57
modify it under the terms of the GNU Lesser General Public

src/YoutubeApi.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/*
2-
Copyright (c) 2015 Giancarlo Bacchio. All right reserved.
2+
Copyright (c) 2017 Brian Lough. All right reserved.
33
4-
TelegramBot - Library to create your own Telegram Bot using
5-
ESP8266 on Arduino IDE.
6-
Ref. Library at https:github/esp8266/Arduino
4+
YoutubeApi - An Arduino wrapper for the YouTube API
75
86
This library is free software; you can redistribute it and/or
97
modify it under the terms of the GNU Lesser General Public
@@ -50,10 +48,8 @@ class YoutubeApi
5048
String sendGetToYoutube(String command);
5149
bool getChannelStatistics(String channelId);
5250
channelStatistics channelStats;
53-
const char* fingerprint = "3F:AE:17:DA:03:65:45:BE:CE:77:2F:8A:DC:5B:C9:08:98:7E:9E:E7"; //Telegram.org Certificate
5451

5552
private:
56-
//JsonObject * parseUpdates(String response);
5753
String _apiKey;
5854
Client *client;
5955
const int maxMessageLength = 1000;

0 commit comments

Comments
 (0)