From 1ab201f1aad5b7c4f5470bc1c03441fe603c56ca Mon Sep 17 00:00:00 2001 From: Nima Hejazi Date: Tue, 6 Jul 2021 16:50:39 -0700 Subject: [PATCH] consolidate CI --- .github/workflows/R-CMD-check.yaml | 2 +- README.Rmd | 2 - README.md | 3 -- appveyor.yml | 74 ------------------------------ codecov.yml | 3 -- 5 files changed, 1 insertion(+), 83 deletions(-) delete mode 100644 appveyor.yml diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 41cc01d..587cbd4 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -38,7 +38,7 @@ jobs: run: | install.packages(c("remotes", "rcmdcheck", "covr", "sessioninfo")) remotes::install_deps(dependencies = TRUE) - remotes::install_github("tlverse/sl3") + remotes::install_github(c("tlverse/sl3", "r-lib/covr")) shell: Rscript {0} - name: Check run: | diff --git a/README.Rmd b/README.Rmd index 9d35f63..a558321 100644 --- a/README.Rmd +++ b/README.Rmd @@ -17,8 +17,6 @@ knitr::opts_chunk$set( # R/`txshift` -[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/nhejazi/txshift?branch=master&svg=true)](https://ci.appveyor.com/project/nhejazi/txshift) - [![R-CMD-check](https://github.com/nhejazi/txshift/workflows/R-CMD-check/badge.svg)](https://github.com/nhejazi/txshift/actions) [![Coverage Status](https://img.shields.io/codecov/c/github/nhejazi/txshift/master.svg)](https://codecov.io/github/nhejazi/txshift?branch=master) diff --git a/README.md b/README.md index 0bdd60e..0083a6a 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,6 @@ # R/`txshift` -[![AppVeyor Build -Status](https://ci.appveyor.com/api/projects/status/github/nhejazi/txshift?branch=master&svg=true)](https://ci.appveyor.com/project/nhejazi/txshift) - [![R-CMD-check](https://github.com/nhejazi/txshift/workflows/R-CMD-check/badge.svg)](https://github.com/nhejazi/txshift/actions) diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 6cb4be9..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,74 +0,0 @@ -# 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 -> appveyor.yml - -# Adapt as necessary starting from here -branches: - only: - - master - -environment: - global: - WARNINGS_ARE_ERRORS: 0 - R_ARCH: x64 - USE_RTOOLS: true - R_REMOTES_STANDALONE: true - R_REMOTES_NO_ERRORS_FROM_WARNINGS: true - - matrix: - - R_VERSION: release - -build_script: - - travis-tool.sh install_github r-lib/sessioninfo r-lib/covr - - travis-tool.sh install_github tlverse/sl3@devel - - travis-tool.sh install_deps - -test_script: - - travis-tool.sh run_tests - -on_failure: - - 7z a failure.zip *.Rcheck\* - - appveyor PushArtifact failure.zip - -on_success: - - Rscript -e "covr::codecov(line_exclusions = list('R/utils.R', 'R/plots.R'))" - -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 - -notifications: - - provider: Email - to: - - nh@nimahejazi.org - subject: 'r-appveyor build {{status}}' - message: "https://ci.appveyor.com/project/nhejazi/txshift" - on_build_success: true - on_build_failure: true - on_build_status_changed: true diff --git a/codecov.yml b/codecov.yml index 10382d7..69cb760 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,4 +1 @@ comment: false - -codecov: - token: e8112dc2-2988-4488-8a5d-21d366deddaa