Skip to content

Commit

Permalink
Merge pull request #16 from nickelc/ci-actions
Browse files Browse the repository at this point in the history
Migrate to GitHub Actions
  • Loading branch information
davechallis authored Feb 23, 2021
2 parents 217a9cb + 7cf9c77 commit d965c4a
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 53 deletions.
22 changes: 0 additions & 22 deletions .appveyor.yml

This file was deleted.

57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on: [push, pull_request]

jobs:
test:
name: Test

runs-on: ${{ matrix.os }}

continue-on-error: ${{ matrix.continue-on-error || false }}

strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
rust:
- stable
- beta
- nightly

include:
- rust: nightly
continue-on-error: true

- os: windows-latest
rust: stable
target: x86_64-pc-windows-msvc
- os: windows-latest
rust: stable
target: x86_64-pc-windows-gnu

steps:
- uses: actions/checkout@v2

- name: Install rust (${{ matrix.rust }})
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- name: Set default host triple
if: matrix.target
run: rustup set default-host ${{ matrix.target }}

- name: Install redis (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install redis-server
- name: Install redis (macOS)
if: runner.os == 'macOS'
run: brew install redis
- name: Install redis (Windows)
if: runner.os == 'Windows'
run: choco install redis-64 --version=3.0.503

- run: cargo build --verbose --all
- run: cargo test --verbose --all -- --test-threads=1
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# ocypod

[![Build Status](https://travis-ci.com/davechallis/ocypod.svg?branch=master)](https://travis-ci.com/davechallis/ocypod)
[![Build status](https://ci.appveyor.com/api/projects/status/yi6kac4bn674upn1?svg=true)](https://ci.appveyor.com/project/davechallis/ocypod)
[![Build Status](https://github.com/davechallis/ocypod/actions/workflows/ci.yml/badge.svg)](https://github.com/davechallis/ocypod/actions/workflows/ci.yml)
[![Documentation Status](https://readthedocs.org/projects/ocypod/badge/?version=latest)](https://ocypod.readthedocs.io/en/latest/?badge=latest)
[![Docker release](https://img.shields.io/docker/v/davechallis/ocypod?sort=semver)](https://hub.docker.com/r/davechallis/ocypod)

Expand Down

0 comments on commit d965c4a

Please sign in to comment.