Skip to content

Commit c4b9183

Browse files
authored
Merge pull request #506 from TeamNewPipe/gh-actions
Migrate to GitHub actions from Travis
2 parents 288ddab + 4671e68 commit c4b9183

7 files changed

Lines changed: 66 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
- master
8+
pull_request:
9+
10+
jobs:
11+
build-and-test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: set up JDK 1.8
17+
uses: actions/setup-java@v1.4.3
18+
with:
19+
java-version: 1.8
20+
21+
- name: Cache Gradle dependencies
22+
uses: actions/cache@v2
23+
with:
24+
path: ~/.gradle/caches
25+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
26+
restore-keys: ${{ runner.os }}-gradle
27+
28+
- name: Build and run Tests
29+
run: ./gradlew check --stacktrace

.github/workflows/docs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and deploy JavaDocs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-and-deploy-docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: set up JDK 1.8
15+
uses: actions/setup-java@v1.4.3
16+
with:
17+
java-version: 1.8
18+
19+
- name: Cache Gradle dependencies
20+
uses: actions/cache@v2
21+
with:
22+
path: ~/.gradle/caches
23+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
24+
restore-keys: ${{ runner.os }}-gradle
25+
26+
- name: Build JavaDocs
27+
run: ./gradlew aggregatedJavadocs
28+
29+
- name: Deploy JavaDocs
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./build/docs

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NewPipe Extractor
22

3-
[![Build Status](https://travis-ci.org/TeamNewPipe/NewPipeExtractor.svg?branch=master)](https://travis-ci.org/TeamNewPipe/NewPipeExtractor) [![JIT Pack Badge](https://jitpack.io/v/TeamNewPipe/NewPipeExtractor.svg)](https://jitpack.io/#TeamNewPipe/NewPipeExtractor) [JDoc](https://teamnewpipe.github.io/NewPipeExtractor/javadoc/)[Documentation](https://teamnewpipe.github.io/documentation/)
3+
[![Build Status](https://github.com/TeamNewPipe/NewPipeExtractor/workflows/CI/badge.svg?branch=dev&event=push)](https://github.com/TeamNewPipe/NewPipeExtractor/actions) [![JIT Pack Badge](https://jitpack.io/v/TeamNewPipe/NewPipeExtractor.svg)](https://jitpack.io/#TeamNewPipe/NewPipeExtractor) [JDoc](https://teamnewpipe.github.io/NewPipeExtractor/javadoc/)[Documentation](https://teamnewpipe.github.io/documentation/)
44

55
NewPipe Extractor is a library for extracting things from streaming sites. It is a core component of [NewPipe](https://github.com/TeamNewPipe/NewPipe), but could be used independently.
66

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ task aggregatedJavadocs(type: Javadoc, group: 'Documentation') {
4343
destinationDir = file("$buildDir/docs/javadoc")
4444
title = "$project.name $version"
4545
// options.memberLevel = JavadocMemberLevel.PRIVATE
46-
options.links 'https://docs.oracle.com/javase/7/docs/api/'
46+
options.links 'https://docs.oracle.com/javase/8/docs/api/'
4747
options.encoding 'UTF-8'
4848

4949
subprojects.each { project ->

extractor/src/main/java/org/schabi/newpipe/extractor/linkhandler/SearchQueryHandlerFactory.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public SearchQueryHandler fromQuery(String querry) throws ParsingException {
4242
* It's not mandatory for NewPipe to handle the Url
4343
*
4444
* @param url
45-
* @return
4645
*/
4746
@Override
4847
public boolean onAcceptUrl(String url) {

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubePlaylistLinkHandlerFactory.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ public boolean onAcceptUrl(final String url) {
7676
}
7777

7878
/**
79-
* * If it is a mix (auto-generated playlist) URL, return a {@link LinkHandler} where the URL is
80-
* like
81-
* <code>https://youtube.com/watch?v=videoId&list=playlistId</code>.
79+
* If it is a mix (auto-generated playlist) URL, return a {@link LinkHandler} where the URL is like
80+
* {@code https://youtube.com/watch?v=videoId&list=playlistId}
8281
* <p>Otherwise use super</p>
8382
*/
8483
@Override

0 commit comments

Comments
 (0)