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

Commit 83c6124

Browse files
author
Raphael
committed
Added CI and codecov
1 parent 3e5d95d commit 83c6124

File tree

8 files changed

+167
-0
lines changed

8 files changed

+167
-0
lines changed

.DS_Store

2 KB
Binary file not shown.

.appveyor.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
init:
2+
ps: |
3+
$ErrorActionPreference = "Stop"
4+
Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
5+
Import-Module '..\appveyor-tool.ps1'
6+
install:
7+
ps: Bootstrap
8+
9+
#branches:
10+
# only:
11+
# - master
12+
# - dev
13+
14+
build_script:
15+
- travis-tool.sh install_deps
16+
- travis-tool.sh install_r Rcpp
17+
18+
test_script:
19+
- travis-tool.sh run_tests
20+
21+
on_failure:
22+
- travis-tool.sh dump_logs
23+
24+
artifacts:
25+
- path: '*.Rcheck\**\*.log'
26+
name: Logs
27+
28+
- path: '*.Rcheck\**\*.out'
29+
name: Logs
30+
31+
- path: '*.Rcheck\**\*.fail'
32+
name: Logs
33+
34+
- path: '*.Rcheck\**\*.Rout'
35+
name: Logs
36+
37+
- path: '\*_*.tar.gz'
38+
name: Bits
39+
40+
- path: '\*_*.zip'
41+
name: Bits
42+
43+
44+
version: 1.0.{build}-{branch}
45+
46+
#branches:
47+
# except:
48+
# - gh-pages
49+
50+
skip_tags: true
51+
52+
max_jobs: 1
53+
54+
environment:
55+
global:
56+
USE_RTOOLS: true
57+
WARNINGS_ARE_ERRORS: true
58+
59+
matrix:
60+
- R_VERSION: release
61+
R_ARCH: x64
62+
63+
# - R_VERSION: devel
64+
# R_ARCH: x64
65+
66+
# - R_VERSION: oldrel
67+
# R_ARCH: x64
68+
69+
cache:
70+
- C:\RLibrary\
71+
72+
notifications:
73+
- provider: Email
74+
on_build_success: false
75+
on_build_failure: false
76+
on_build_status_changed: false
77+

.codecov.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
codecov:
2+
3+
ci:
4+
- !appveyor
5+
6+
notify:
7+
require_ci_to_pass: yes
8+
9+
coverage:
10+
precision: 2
11+
round: down
12+
range: "70...100"
13+
status:
14+
project: yes
15+
patch: yes
16+
changes: no
17+
18+
parsers:
19+
gcov:
20+
branch_detection:
21+
conditional: yes
22+
loop: yes
23+
method: no
24+
macro: no
25+
26+
comment:
27+
layout: "header, diff"
28+
behavior: default
29+
require_changes: no

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ vignettes/*.pdf
3434

3535
# Shiny token, see https://shiny.rstudio.com/articles/shinyapps.html
3636
rsconnect/
37+
tests/testthat/.DS_Store
38+
tests/.DS_Store

.travis.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
language: r
2+
3+
#branches:
4+
# only:
5+
# - master
6+
# - dev1.1
7+
8+
matrix:
9+
include:
10+
# - os: linux
11+
# r: oldrel
12+
- os: linux
13+
r: release
14+
# - os: linux
15+
# r: devel
16+
# - os: osx
17+
# r: oldrel
18+
# - os: osx
19+
# r: release
20+
# - os: osx
21+
# r: devel
22+
23+
sudo: false
24+
25+
dist: trusty
26+
27+
cache: packages
28+
29+
latex: true
30+
31+
r_github_packages:
32+
- r-lib/pkgdown
33+
34+
r_packages:
35+
- covr
36+
37+
after_success:
38+
- Rscript -e 'pkgdown::build_site()'
39+
- Rscript -e 'library(covr); codecov()'
40+
41+
deploy:
42+
provider: pages
43+
skip-cleanup: true
44+
github-token: $GITHUB_TOKEN
45+
keep-history: false
46+
local-dir: docs
47+
on:
48+
branch: master

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# set6 0.0.0.9000
2+
3+
- In development, V1 to CRAN aim 01/09/19

_pkgdown.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
template:
2+
params:
3+
bootswatch: spacelab

tests/testthat.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
library(testthat)
2+
library(set6)
3+
4+
test_check("set6")
5+

0 commit comments

Comments
 (0)