Skip to content

Commit

Permalink
Continuous Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
CiaranOMara committed Feb 19, 2020
1 parent b2ec340 commit 282d80a
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment: false
22 changes: 22 additions & 0 deletions .github/workflows/UnitTests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Unit tests

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.1', '1.2', '1.3']
julia-arch: [x64]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/[email protected]
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- name: Install dependencies
run: julia ci_prep.jl
- uses: julia-actions/julia-runtest@master
3 changes: 3 additions & 0 deletions ci_prep.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using Pkg.Registry
Registry.add(Registry.RegistrySpec(url = "https://github.com/BioJulia/BioJuliaRegistry.git"))
Registry.add(Registry.RegistrySpec(url = "https://github.com/JuliaRegistries/General.git"))
2 changes: 2 additions & 0 deletions coverage/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[deps]
Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037"
11 changes: 11 additions & 0 deletions coverage/coverage.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
get(ENV, "TRAVIS_OS_NAME", "") == "linux" || exit()
get(ENV, "TRAVIS_JULIA_VERSION", "") == "1.3" || exit()

using Pkg
Pkg.instantiate()

using Coverage

cd(joinpath(@__DIR__, "..")) do
Codecov.submit(Codecov.process_folder())
end

0 comments on commit 282d80a

Please sign in to comment.