diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fa9047..a454b23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,26 +1,22 @@ -# name: Build and Run Tests +name: Build -# on: [push, pull_request] +on: [push, pull_request] -# jobs: -# setup-build-test: -# name: Setup, Build, Test -# strategy: -# matrix: -# go-version: [1.12.x] -# platform: [macos-latest] -# runs-on: ${{ matrix.platform }} -# steps: -# - name: Setup Go -# uses: actions/setup-go@v1 -# with: -# go-version: ${{ matrix.go-version }} -# - name: Checkout code -# uses: actions/checkout@v1 -# - name: Build -# run: make build -# - name: Run tests -# run: make test -# - name: Install -# run: make install \ No newline at end of file +jobs: + setup-build-test: + name: Setup, Build, Test + strategy: + matrix: + go-version: [1.12.x] + platform: [macos-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Setup Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v1 + - name: Build + run: brew install ffmpeg && make \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 5dff618..84899cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,27 @@ +dist: bionic language: go -cache: - directories: - - $GOCACHE - - $GOPATH/pkg/mod -sudo: required go: - "1.12.x" - "1.13.x" -jobs: - include: - - stage: Build - script: make build - - stage: Test - script: make test - name: Install - - script: make install \ No newline at end of file +addons: + apt: + packages: + - ffmpeg + - frei0r-plugins +before_install: + - go get -u github.com/sirupsen/logrus + - go get -u github.com/viert/go-lame +install: true +script: + - make build + - make test + - make install +deploy: +- provider: script + script: echo "Deploy not enabled at the moment" + skip_cleanup: true + on: + branch: master +notifications: + email: false +env: GO111MODULE=on diff --git a/README.md b/README.md index c72e9b6..a0ab681 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,20 @@ # youtube-dl +[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ch3ck/youtube-dl/Build?style=for-the-badge)](https://github.com/ch3ck/youtube-dl/actions) [![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://godoc.org/github.com/ch3ck/youtube-dl) -[![Github All Releases](https://img.shields.io/github/downloads/ch3ck/youtube-dl/total.svg?style=for-the-badge)](https://github.com/ch3ck/youtube-dl/releases) - +[![GitHub license](https://img.shields.io/github/license/ch3ck/youtube-dl?style=for-the-badge)](https://github.com/ch3ck/youtube-dl/blob/master/LICENSE) `youtube-dl` is a simple youtube video downloader and can also download multiple videos concurrently. Downloaded videos could be converted to `flv` or `mp3` formats. -## Dependencies +## Pre-requisites -* [Go version 1.12](https://github.com/golang/go/releases/tag/go.1.12) -* [Docker CE 17.06](https://docs.docker.com/release-notes/docker-ce/) -* [Lame](https://sourceforge.net/projects/lame/) +- Install [FFMPEG](https://github.com/adaptlearning/adapt_authoring/wiki/Installing-FFmpeg) ## Build + ```bash $ git clone htps://github.com/Ch3ck/youtube-dl $ cd youtube-dl