Skip to content

Commit

Permalink
Remove travis related files. Add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Jun 13, 2021
1 parent 12b5e6d commit bcf698d
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 26 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,38 @@
name: build
on:
pull_request:
push:
release:
types: [published]

jobs:
Build:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
dc:
- ldc-latest
- dmd-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Setup D
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}

- name: Build and run tests
run: |
dub test -b unittest-cov
- name: Install and run doveralls
if: ${{ startsWith(matrix.os, 'ubuntu') && startsWith(matrix.dc, 'dmd') && github.event_name == 'push' }}
run: |
sudo apt-get install -y libcurl4-openssl-dev
dub fetch doveralls
dub run doveralls -- -t ${{ secrets.CoverallsToken }}
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@

[Shared MIME-info database](https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/) specification implementation in D programming language. Shared MIME-info database helps to determine media type of file by its name or contents.

[![Build Status](https://travis-ci.org/FreeSlave/mime.svg?branch=master)](https://travis-ci.org/FreeSlave/mime) [![Coverage Status](https://coveralls.io/repos/github/FreeSlave/mime/badge.svg?branch=master)](https://coveralls.io/github/FreeSlave/mime?branch=master)
[![Build Status](https://github.com/FreeSlave/mime/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/FreeSlave/mime/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/github/FreeSlave/mime/badge.svg?branch=master)](https://coveralls.io/github/FreeSlave/mime?branch=master)

[Online documentation](https://freeslave.github.io/d-freedesktop/docs/mime.html)

Expand Down
13 changes: 0 additions & 13 deletions travis-script.sh

This file was deleted.

0 comments on commit bcf698d

Please sign in to comment.