Skip to content

Commit

Permalink
Replace Travis CI with a Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 committed Feb 26, 2021
1 parent 8e3e5ff commit 9a1c3c3
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 57 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Github worflows for Ocean

name: CI

on: [push, pull_request]

jobs:
main:
name: Run
strategy:
# Disable `fail-fast` because even if things fail for one compiler release
# or build flavour we still want to see how things perform with the others
fail-fast: false
matrix:
os: [ ubuntu-18.04 ]
dmd: [ '2.092.*', '2.093.*' ]
flavor: [ prod, devel ]
include:
- { os: ubuntu-18.04, dmd: '2.092.*', dist: bionic, coverage: 0, closure_check: false }
- { os: ubuntu-18.04, dmd: '2.093.*', dist: bionic, coverage: 1, closure_check: true }

runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:

# Checkout this repository and its submodules
- uses: actions/checkout@v2
with:
submodules: true

- name: Setup environment
run: |
echo "$(git config -f .gitmodules submodule.beaver.path)/bin" >> $GITHUB_PATH
echo "COV=${{ matrix.coverage }}" >> $GITHUB_ENV
echo "DIST=${{ matrix.dist }}" >> $GITHUB_ENV
echo "DMD=${{ matrix.dmd }}" >> $GITHUB_ENV
echo "F=${{ matrix.flavor }}" >> $GITHUB_ENV
- name: Install compiler
run: beaver dlang install

- name: Test
run: beaver dlang make

- name: Test closures
if: ${{ matrix.closure_check }}
run: |
2>/dev/null beaver dlang make
- name: 'Upload coverage'
if: ${{ matrix.coverage == 1 }}
uses: codecov/codecov-action@v1
with:
flags: ${{ matrix.dist }}-${{ matrix.flavor }}
53 changes: 0 additions & 53 deletions .travis.yml

This file was deleted.

7 changes: 3 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Description |TravisCI|_
=======================
Description |CI|
================

Ocean is a general purpose library, compatible with both D1 and D2, with a focus
on supporting the development of high-performance, real-time applications. This
Expand Down Expand Up @@ -117,5 +117,4 @@ Contributing
See the guide for `contributing to Neptune-versioned libraries
<https://github.com/sociomantic-tsunami/neptune/blob/v0.x.x/doc/library-contributor.rst>`_.

.. |TravisCI| image:: https://travis-ci.com/sociomantic-tsunami/ocean.svg?branch=v5.x.x
.. _TravisCI: https://travis-ci.com/github/sociomantic-tsunami/ocean
.. |CI| image:: https://github.com/sociomantic-tsunami/ocean/actions/workflows/ci.yml/badge.svg

0 comments on commit 9a1c3c3

Please sign in to comment.