Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Added CI and codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael committed Aug 14, 2019
1 parent 3e5d95d commit 83c6124
Show file tree
Hide file tree
Showing 8 changed files with 167 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
77 changes: 77 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
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

#branches:
# only:
# - master
# - dev

build_script:
- travis-tool.sh install_deps
- travis-tool.sh install_r Rcpp

test_script:
- travis-tool.sh run_tests

on_failure:
- travis-tool.sh dump_logs

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


version: 1.0.{build}-{branch}

#branches:
# except:
# - gh-pages

skip_tags: true

max_jobs: 1

environment:
global:
USE_RTOOLS: true
WARNINGS_ARE_ERRORS: true

matrix:
- R_VERSION: release
R_ARCH: x64

# - R_VERSION: devel
# R_ARCH: x64

# - R_VERSION: oldrel
# R_ARCH: x64

cache:
- C:\RLibrary\

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

29 changes: 29 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
codecov:

ci:
- !appveyor

notify:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "70...100"
status:
project: yes
patch: yes
changes: no

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment:
layout: "header, diff"
behavior: default
require_changes: no
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ vignettes/*.pdf

# Shiny token, see https://shiny.rstudio.com/articles/shinyapps.html
rsconnect/
tests/testthat/.DS_Store
tests/.DS_Store
48 changes: 48 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
language: r

#branches:
# only:
# - master
# - dev1.1

matrix:
include:
# - os: linux
# r: oldrel
- os: linux
r: release
# - os: linux
# r: devel
# - os: osx
# r: oldrel
# - os: osx
# r: release
# - os: osx
# r: devel

sudo: false

dist: trusty

cache: packages

latex: true

r_github_packages:
- r-lib/pkgdown

r_packages:
- covr

after_success:
- Rscript -e 'pkgdown::build_site()'
- Rscript -e 'library(covr); codecov()'

deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
local-dir: docs
on:
branch: master
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# set6 0.0.0.9000

- In development, V1 to CRAN aim 01/09/19
3 changes: 3 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
template:
params:
bootswatch: spacelab
5 changes: 5 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
library(testthat)
library(set6)

test_check("set6")

0 comments on commit 83c6124

Please sign in to comment.