Skip to content

Commit

Permalink
Add CI, codecov, and badges
Browse files Browse the repository at this point in the history
  • Loading branch information
kbenoit committed Mar 29, 2019
1 parent 24f6120 commit 1fd73a7
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
@@ -1,3 +1,6 @@
^codecov\.yml$
^appveyor\.yml$
^\.travis\.yml$
^.*\.Rproj$
^\.Rproj\.user$
README.Rmd
9 changes: 9 additions & 0 deletions .travis.yml
@@ -0,0 +1,9 @@
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: R
sudo: false
cache: packages
warnings_are_errors: true

after_success:
- Rscript -e 'covr::codecov()'
3 changes: 2 additions & 1 deletion DESCRIPTION
Expand Up @@ -16,7 +16,8 @@ Imports:
SparseM
Suggests:
spelling,
testthat
testthat,
covr
Remotes:
quanteda/quanteda.corpora
URL: http://github.com/quanteda/quanteda.svm
Expand Down
10 changes: 5 additions & 5 deletions README.Rmd
Expand Up @@ -12,11 +12,11 @@ knitr::opts_chunk$set(

# quanteda.svm: textmodel_svm extension for quanteda

<!--
[![Travis-CI Build Status](https://travis-ci.org/quanteda/quanteda.svg?branch=master)](https://travis-ci.org/quanteda/quanteda)
[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/e3tf2h1ff0nlv249/branch/master?svg=true)](https://ci.appveyor.com/project/kbenoit/quanteda/branch/master)
[![codecov](https://codecov.io/gh/quanteda/quanteda/branch/master/graph/badge.svg)](https://codecov.io/gh/quanteda/quanteda)
-->
[![CRAN Version](https://www.r-pkg.org/badges/version/quanteda.svm)](https://CRAN.R-project.org/package=quanteda.svm)
[![Travis build status](https://travis-ci.org/quanteda/quanteda.svm.svg?branch=master)](https://travis-ci.org/quanteda/quanteda.svm)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/quanteda/quanteda.svm?branch=master&svg=true)](https://ci.appveyor.com/project/quanteda/quanteda.svm)
[![Coverage status](https://codecov.io/gh/quanteda/quanteda.svm/branch/master/graph/badge.svg)](https://codecov.io/github/quanteda/quanteda.svm?branch=master)


## Installation

Expand Down
13 changes: 8 additions & 5 deletions README.md
@@ -1,11 +1,14 @@

# quanteda.svm: textmodel\_svm extension for quanteda

<!--
[![Travis-CI Build Status](https://travis-ci.org/quanteda/quanteda.svg?branch=master)](https://travis-ci.org/quanteda/quanteda)
[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/e3tf2h1ff0nlv249/branch/master?svg=true)](https://ci.appveyor.com/project/kbenoit/quanteda/branch/master)
[![codecov](https://codecov.io/gh/quanteda/quanteda/branch/master/graph/badge.svg)](https://codecov.io/gh/quanteda/quanteda)
-->
[![CRAN
Version](https://www.r-pkg.org/badges/version/quanteda.svm)](https://CRAN.R-project.org/package=quanteda.svm)
[![Travis build
status](https://travis-ci.org/quanteda/quanteda.svm.svg?branch=master)](https://travis-ci.org/quanteda/quanteda.svm)
[![AppVeyor build
status](https://ci.appveyor.com/api/projects/status/github/quanteda/quanteda.svm?branch=master&svg=true)](https://ci.appveyor.com/project/quanteda/quanteda.svm)
[![Coverage
status](https://codecov.io/gh/quanteda/quanteda.svm/branch/master/graph/badge.svg)](https://codecov.io/github/quanteda/quanteda.svm?branch=master)

## Installation

Expand Down
45 changes: 45 additions & 0 deletions appveyor.yml
@@ -0,0 +1,45 @@
# DO NOT CHANGE the "init" and "install" sections below

# Download script file from GitHub
init:
ps: |
$ErrorActionPreference = "Stop"
Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
Import-Module '..\appveyor-tool.ps1'
install:
ps: Bootstrap

cache:
- C:\RLibrary

# Adapt as necessary starting from here

build_script:
- travis-tool.sh install_deps

test_script:
- travis-tool.sh run_tests

on_failure:
- 7z a failure.zip *.Rcheck\*
- appveyor PushArtifact failure.zip

artifacts:
- path: '*.Rcheck\**\*.log'
name: Logs

- path: '*.Rcheck\**\*.out'
name: Logs

- path: '*.Rcheck\**\*.fail'
name: Logs

- path: '*.Rcheck\**\*.Rout'
name: Logs

- path: '\*_*.tar.gz'
name: Bits

- path: '\*_*.zip'
name: Bits
12 changes: 12 additions & 0 deletions codecov.yml
@@ -0,0 +1,12 @@
comment: false

coverage:
status:
project:
default:
target: auto
threshold: 1%
patch:
default:
target: auto
threshold: 1%

0 comments on commit 1fd73a7

Please sign in to comment.