From 11b12ace3ea7a4e229eb128d6e037d3859447b1b Mon Sep 17 00:00:00 2001 From: boB Rudis Date: Mon, 3 Oct 2016 16:00:02 -0400 Subject: [PATCH] appveyor --- .Rbuildignore | 1 + .travis.yml | 2 +- R/RcppExports.R | 2 +- README.Rmd | 5 ++++- appveyor.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ src/RcppExports.cpp | 10 +++++----- 6 files changed, 54 insertions(+), 8 deletions(-) create mode 100644 appveyor.yml diff --git a/.Rbuildignore b/.Rbuildignore index 6abb5ae..4e10fcd 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -6,3 +6,4 @@ ^CONDUCT\.md$ ^README\.html$ ^cran-comments\.md$ +^appveyor\.yml$ diff --git a/.travis.yml b/.travis.yml index 3b3e9d4..f721340 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,5 +12,5 @@ notifications: - bob@rud.is irc: channels: - - "104.236.112.222#builds" + - "irc.rud.is#builds" nick: travisci diff --git a/R/RcppExports.R b/R/RcppExports.R index 9484152..3393706 100644 --- a/R/RcppExports.R +++ b/R/RcppExports.R @@ -1,4 +1,4 @@ -# Generated by using Rcpp::compileAttributes() -> do not edit by hand +# This file was generated by Rcpp::compileAttributes # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 tidy_html_int <- function(source, options, show_errors) { diff --git a/README.Rmd b/README.Rmd index a2b6483..4a41205 100644 --- a/README.Rmd +++ b/README.Rmd @@ -1,7 +1,10 @@ --- output: rmarkdown::github_document --- -[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/htmltidy.svg?branch=master)](https://travis-ci.org/hrbrmstr/htmltidy) [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/htmltidy)](https://cran.r-project.org/package=htmltidy) ![downloads](http://cranlogs.r-pkg.org/badges/grand-total/htmltidy) +[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/htmltidy.svg?branch=master)](https://travis-ci.org/hrbrmstr/htmltidy) +[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/NA/NA?branch=master&svg=true)](https://ci.appveyor.com/project/NA/NA) +[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/htmltidy)](https://cran.r-project.org/package=htmltidy) +![downloads](http://cranlogs.r-pkg.org/badges/grand-total/htmltidy) diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..e32d316 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,42 @@ +# 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 + +# 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 diff --git a/src/RcppExports.cpp b/src/RcppExports.cpp index 73c0573..aacf505 100644 --- a/src/RcppExports.cpp +++ b/src/RcppExports.cpp @@ -1,4 +1,4 @@ -// Generated by using Rcpp::compileAttributes() -> do not edit by hand +// This file was generated by Rcpp::compileAttributes // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #include @@ -9,12 +9,12 @@ using namespace Rcpp; Rcpp::CharacterVector tidy_html_int(std::string source, Rcpp::List options, bool show_errors); RcppExport SEXP htmltidy_tidy_html_int(SEXP sourceSEXP, SEXP optionsSEXP, SEXP show_errorsSEXP) { BEGIN_RCPP - Rcpp::RObject rcpp_result_gen; - Rcpp::RNGScope rcpp_rngScope_gen; + Rcpp::RObject __result; + Rcpp::RNGScope __rngScope; Rcpp::traits::input_parameter< std::string >::type source(sourceSEXP); Rcpp::traits::input_parameter< Rcpp::List >::type options(optionsSEXP); Rcpp::traits::input_parameter< bool >::type show_errors(show_errorsSEXP); - rcpp_result_gen = Rcpp::wrap(tidy_html_int(source, options, show_errors)); - return rcpp_result_gen; + __result = Rcpp::wrap(tidy_html_int(source, options, show_errors)); + return __result; END_RCPP }