Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd0772f

Browse files
committed
feat(travis): docs and tests of youtube3 on travis
This might already bring it close to 7 minutes runtime, which seems like providing us with a buffer big enough for when it is feature-complete.
1 parent 8006bb8 commit dd0772f

6 files changed

Lines changed: 116 additions & 135 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
language: rust
2+
script:
3+
- make docs cargo ARGS=test
24
env:
35
global:
46
secure: Plj5DqAQX/4+KPM+nOAZ2sCbGIsoSrHo1YggfesQnU7paR734XO/4IayWnsNO/3q6bDi4GIcn56RUZAD3xBJJBNLia2CYIickIIYORRqLWbLdbzQaxBbD670ahtzEuUSFJTRKURPwFteAnsWYgNMNzwXOVNwLS5IUBqWTcS+N0g=

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ RUST_SRC = src/rust
1616
API_DEPS_TPL = $(MAKO_SRC)/deps.mako
1717
API_DEPS = .api.deps
1818
API_SHARED_INFO = etc/api/shared.yaml
19-
API_LIST = etc/api/api-list.yaml
19+
API_LIST = etc/api/
20+
ifdef TRAVIS
21+
API_LIST := $(API_LIST)api-list_travis.yaml
22+
else
23+
API_LIST := $(API_LIST)api-list.yaml
24+
endif
2025
API_JSON_FILES = $(shell find etc -type f -name '*-api.json')
2126
MAKO_LIB_DIR = $(MAKO_SRC)/lib
2227
MAKO_LIB_FILES = $(shell find $(MAKO_LIB_DIR) -type f -name '*.*')

etc/api/api-list_travis.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
api:
2+
list:
3+
youtube:
4+
- v3

gen/youtube3/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Handle the following *Resources* with ease from the central [hub](http://byron.g
2424
* [subscriptions](http://byron.github.io/google-apis-rs/youtube3/struct.Subscription.html) ([*delete*](http://byron.github.io/google-apis-rs/youtube3/struct.SubscriptionDeleteMethodBuilder.html), [*insert*](http://byron.github.io/google-apis-rs/youtube3/struct.SubscriptionInsertMethodBuilder.html) and [*list*](http://byron.github.io/google-apis-rs/youtube3/struct.SubscriptionListMethodBuilder.html))
2525
* [thumbnails](http://byron.github.io/google-apis-rs/youtube3/struct.Thumbnail.html) ([*set*](http://byron.github.io/google-apis-rs/youtube3/struct.ThumbnailSetMethodBuilder.html))
2626
* [video categories](http://byron.github.io/google-apis-rs/youtube3/struct.VideoCategory.html) ([*list*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoCategoryListMethodBuilder.html))
27-
* [videos](http://byron.github.io/google-apis-rs/youtube3/struct.Video.html) ([*delete*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoDeleteMethodBuilder.html), [*getrating*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoGetRatingMethodBuilder.html), [*insert*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoInsertMethodBuilder.html), [*list*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoListMethodBuilder.html), [*rate*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoRateMethodBuilder.html) and [*update*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoUpdateMethodBuilder.html))
27+
* [videos](http://byron.github.io/google-apis-rs/youtube3/struct.Video.html) ([*delete*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoDeleteMethodBuilder.html), [*get rating*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoGetRatingMethodBuilder.html), [*insert*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoInsertMethodBuilder.html), [*list*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoListMethodBuilder.html), [*rate*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoRateMethodBuilder.html) and [*update*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoUpdateMethodBuilder.html))
2828
* watermarks ([*set*](http://byron.github.io/google-apis-rs/youtube3/struct.WatermarkSetMethodBuilder.html) and [*unset*](http://byron.github.io/google-apis-rs/youtube3/struct.WatermarkUnsetMethodBuilder.html))
2929

3030
Everything else about the *YouTube* API can be found at the
@@ -77,10 +77,10 @@ extern crate hyper;
7777
extern crate "yup-oauth2" as oauth2;
7878
extern crate "rustc-serialize" as rustc_serialize;
7979
extern crate youtube3;
80-
# use youtube3::cmn::Result;
80+
use youtube3::cmn::Result;
8181
use std::default::Default;
8282
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
83-
# use youtube3::YouTube;
83+
use youtube3::YouTube;
8484

8585
// Get an ApplicationSecret instance by some means. It contains the `client_id` and `client_secret`,
8686
// among other things.
@@ -158,4 +158,4 @@ The **youtube3** library was generated by Sebastian Thiel, and is placed
158158
under the *MIT* license.
159159
You can read the full text at the repository's [license file][repo-license].
160160

161-
[repo-license]: https://github.com/Byron/google-apis-rsLICENSE.md
161+
[repo-license]: https://github.com/Byron/google-apis-rs/LICENSE.md

0 commit comments

Comments
 (0)