Skip to content

Commit

Permalink
Add CI, code coverage, and README with badges
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed May 30, 2020
1 parent cb48187 commit 8dc1aff
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
jobs:
TagBot:
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
- osx
julia:
- 1.0
- latest
- nightly
notifications:
email: false
git:
depth: 99999999

## uncomment the following lines to allow failures on nightly julia
## (tests will run but not make your overall status red)
matrix:
allow_failures:
- julia: nightly

## uncomment the following lines to override the default test script

before_script: # homebrew for mac
- julia -e 'using Pkg; Pkg.add(PackageSpec(;url="https://github.com/JuliaFinance/Instruments.jl.git"))'
after_success:
# push coverage results to Codecov
- julia -e 'using Pkg; cd(Pkg.dir("Assets")); using Coverage; Codecov.submit(Codecov.process_folder())'
8 changes: 5 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name = "Assets"
uuid = "821ac057-2368-47e2-a1d8-2c0798f0e233"
desc = "Financial assets"
authors = ["Eric Forgy <[email protected]>", "ScottPJones <[email protected]>"]
keywords = ["Finance", "Asset"]
license = "MIT"
uuid = "821ac057-2368-47e2-a1d8-2c0798f0e233"
version = "0.1.0"

[deps]
FixedPointDecimals = "fb4d412d-6eee-574d-9565-ede6634db7b0"
Instruments = "2a4f3d17-849a-48a1-809e-d780c70a95a0"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
FixedPointDecimals = "fb4d412d-6eee-574d-9565-ede6634db7b0"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Assets

[pkg-url]: https://github.com/JuliaFinance/Assets.jl.git

[eval-url]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html
[eval-img]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/A/Assets.svg

[release]: https://img.shields.io/github/release/JuliaFinance/Assets.jl.svg
[release-date]: https://img.shields.io/github/release-date/JuliaFinance/Assets.jl.svg

[license-img]: http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat
[license-url]: LICENSE.md
[travis-url]: https://travis-ci.org/JuliaFinance/Assets.jl
[travis-s-img]: https://travis-ci.org/JuliaFinance/Assets.jl.svg
[travis-m-img]: https://travis-ci.org/JuliaFinance/Assets.jl.svg?branch=master

[app-s-url]: https://ci.appveyor.com/project/JuliaFinance/assets-jl
[app-m-url]: https://ci.appveyor.com/project/JuliaFinance/assets-jl/branch/master
[app-s-img]: https://ci.appveyor.com/api/projects/status/2snwo9ea7blvu8jm?svg=true
[app-m-img]: https://ci.appveyor.com/api/projects/status/2snwo9ea7blvu8jm/branch/master?svg=true

[contrib]: https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat

[codecov-url]: https://codecov.io/gh/JuliaFinance/Assets.jl
[codecov-img]: https://codecov.io/gh/JuliaFinance/Assets.jl/branch/master/graph/badge.svg

[![contributions welcome][contrib]](https://github.com/JuliaFinance/Assets.jl/issues)
[![][license-img]][license-url]

| **Info** | **Windows** | **Linux & MacOS** | **Package Evaluator** | **Coverage** |
|:------------------:|:------------------:|:---------------------:|:-----------------:|:---------------------:|
| [![][release]][pkg-url] [![][release-date]][pkg-url] | [![][app-s-img]][app-s-url] | [![][travis-s-img]][travis-url] | [![][pkg-img]][pkg-url] | [![][codecov-img]][codecov-url]
| master branch | [![][app-m-img]][app-m-url] | [![][travis-m-img]][travis-url] | [![][pkg-img]][pkg-url] | [![][codecov-img]][codecov-url]
44 changes: 44 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
environment:
matrix:
- julia_version: 1
- julia_version: latest
- julia_version: nightly

platform:
- x86 # 32-bit
- x64 # 64-bit

# # Uncomment the following lines to allow failures on nightly julia
# # (tests will run but not make your overall status red)
# matrix:
# allow_failures:
# - julia_version: nightly

branches:
only:
- master
- /release-.*/

notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false

install:
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))

build_script:
- echo "%JL_BUILD_SCRIPT%"
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"

test_script:
- echo "%JL_TEST_SCRIPT%"
- C:\julia\bin\julia -e "using Pkg; Pkg.add(PackageSpec(url=\"https://github.com/JuliaFinance/Instruments.jl.git\"))"
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

# # Uncomment to support code coverage upload. Should only be enabled for packages
# # which would have coverage gaps without running on Windows
# on_success:
# - echo "%JL_CODECOV_SCRIPT%"
# - C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%"

0 comments on commit 8dc1aff

Please sign in to comment.