-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating to Displayr/travisCI/coveralls
- Loading branch information
travisCIscripts
authored and
travisCIscripts
committed
Aug 31, 2017
1 parent
9ca89f3
commit 9bc54c6
Showing
1 changed file
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,41 @@ | ||
[![](https://travis-ci.org/Displayr/flipData.svg?branch=master)](https://travis-ci.org/Displayr/flipData/) | ||
[![Coverage Status](https://coveralls.io/repos/github/Displayr/flipData/badge.svg?branch=master)](https://coveralls.io/github/Displayr/flipData?branch=master) | ||
# flipData | ||
|
||
Functions for extracting and describing data | ||
|
||
To install from GitHub | ||
``` | ||
require(devtools) | ||
install_github("Displayr/flipData") | ||
``` | ||
|
||
[![Displayr logo](https://mwmclean.github.io/img/logo-header.png)](https://www.displayr.com) | ||
language: r | ||
r: | ||
- release | ||
dist: trusty # ubuntu 14.04 has additional libraries available | ||
sudo: required | ||
cache: false | ||
warnings_are_errors: false | ||
|
||
# install debian libraries to match R-servers | ||
# update pre-installed packages to latest versions | ||
before_install: | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -y libgdal-dev libproj-dev python-protobuf libprotoc-dev libprotobuf-dev libv8-dev librsvg2-dev | ||
|
||
r_packages: | ||
- roxygen2 | ||
- covr | ||
|
||
r_github_packages: | ||
- Displayr/travisCI | ||
- Displayr/flipExampleData | ||
|
||
script: | ||
- R CMD build --no-manual --no-build-vignettes --no-resave-data . | ||
- R CMD check --as-cran --no-manual --no-build-vignettes --no-tests *.tar.gz | ||
- if [ -d tests/testthat ]; then Rscript --default-packages='datasets,utils,grDevices,graphics,stats,methods' -e 'res<-devtools::test(); df <- as.data.frame(res); pass <- sum(df$failed)==0 && all(!df$error); write.csv(df, file="test_results.csv"); quit(status=1-pass, save="no")'; fi | ||
|
||
notifications: | ||
slack: | ||
rooms: | ||
- displayr:FTgSTNHC2rpanhJMGTKMwZXM#github-notifications | ||
template: | ||
- "Build <%{build_url}|#%{build_number}> %{result} in %{repository_name}@%{branch} by %{author}: <%{compare_url}|%{commit_message}>" | ||
on_success: change | ||
on_failure: always | ||
|
||
# Warning notifications and downstream package builds are implemented | ||
# by calling R functions so they can be updated in this package without | ||
# committing a new change to .travis.yml in each repository | ||
after_success: | ||
- travis_wait Rscript -e "require(travisCI); NotifyWarnings(); TriggerDownstreamBuilds(); CheckCoverage()" |