Browse Source

switch to github actions

pull/169/head
aler9 5 years ago
parent
commit
b40b2f2463
  1. 18
      .github/workflows/test.yml
  2. 37
      .travis.yml
  3. 2
      Makefile
  4. 2
      README.md

18
.github/workflows/test.yml

@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
name: test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make test

37
.travis.yml

@ -1,37 +0,0 @@ @@ -1,37 +0,0 @@
language: minimal
dist: bionic
services:
- docker
# docker >= 19.03 is required for docker buildx, so it is upgraded
before_install:
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt update -y
- sudo apt install --only-upgrade docker-ce -y
script:
- make test
deploy:
- provider: script
script: make release
on:
repo: aler9/rtsp-simple-server
tags: true
- provider: releases
api_key: $GITHUB_API_KEY
skip_cleanup: true
file_glob: true
file: release/*
on:
repo: aler9/rtsp-simple-server
tags: true
- provider: script
script: docker login -u aler9 -p $DOCKER_PASSWORD && make dockerhub
on:
repo: aler9/rtsp-simple-server
tags: true

2
Makefile

@ -43,7 +43,7 @@ export DOCKERFILE_TEST @@ -43,7 +43,7 @@ export DOCKERFILE_TEST
test:
echo "$$DOCKERFILE_TEST" | docker build -q . -f - -t temp
docker run --rm -it \
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
temp \
make test-nodocker

2
README.md

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
# rtsp-simple-server
[![Build Status](https://travis-ci.com/aler9/rtsp-simple-server.svg?branch=master)](https://travis-ci.com/aler9/rtsp-simple-server)
[![Test](https://github.com/aler9/rtsp-simple-server/workflows/test/badge.svg)](https://github.com/aler9/rtsp-simple-server/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/aler9/rtsp-simple-server)](https://goreportcard.com/report/github.com/aler9/rtsp-simple-server)
[![Docker Hub](https://img.shields.io/badge/docker-aler9%2Frtsp--simple--server-blue)](https://hub.docker.com/r/aler9/rtsp-simple-server)

Loading…
Cancel
Save