Skip to content

Commit 214b521

Browse files
committed
Switch to GitHub Actions based CI
1 parent 1ca3e14 commit 214b521

File tree

4 files changed

+70
-64
lines changed

4 files changed

+70
-64
lines changed

.github/workflows/ci.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
9+
tags: '*'
10+
jobs:
11+
test:
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
13+
runs-on: ${{ matrix.os }}
14+
continue-on-error: ${{ matrix.version == 'nightly' }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
version:
19+
- '1.0'
20+
- '1'
21+
- 'nightly'
22+
os:
23+
- ubuntu-latest
24+
arch:
25+
- x64
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: julia-actions/setup-julia@v1
29+
with:
30+
version: ${{ matrix.version }}
31+
arch: ${{ matrix.arch }}
32+
- uses: actions/cache@v1
33+
env:
34+
cache-name: cache-artifacts
35+
with:
36+
path: ~/.julia/artifacts
37+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
38+
restore-keys: |
39+
${{ runner.os }}-test-${{ env.cache-name }}-
40+
${{ runner.os }}-test-
41+
${{ runner.os }}-
42+
- uses: julia-actions/julia-buildpkg@v1
43+
- uses: julia-actions/julia-runtest@v1
44+
- uses: julia-actions/julia-processcoverage@v1
45+
- uses: codecov/codecov-action@v1
46+
with:
47+
file: lcov.info
48+
docs:
49+
name: Documentation
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v2
53+
- uses: julia-actions/setup-julia@v1
54+
with:
55+
version: '1'
56+
- run: |
57+
julia --project=docs -e '
58+
using Pkg
59+
Pkg.develop(PackageSpec(path=pwd()))
60+
Pkg.instantiate()'
61+
- run: |
62+
julia --project=docs -e '
63+
using Documenter: doctest
64+
using DiffResults
65+
doctest(DiffResults)'
66+
- run: julia --project=docs docs/make.jl
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DiffResults
22

3-
[![Build Status](https://travis-ci.org/JuliaDiff/DiffResults.jl.svg?branch=master)](https://travis-ci.org/JuliaDiff/DiffResults.jl)
3+
![CI](https://github.com/JuliaDiff/DiffResults.jl/workflows/CI/badge.svg)
44
[![Coverage Status](https://coveralls.io/repos/github/JuliaDiff/DiffResults.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaDiff/DiffResults.jl?branch=master)
55

66
[![](https://img.shields.io/badge/docs-stable-blue.svg)](http://www.juliadiff.org/DiffResults.jl/stable)

appveyor.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)