-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
63 lines (53 loc) · 2.53 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
env:
global:
- secure: b9DfgCLxLdBReSvku0eSExzvip4/gTVjmtEKaV8lsOOZPK4oCrZQU0IYWezAVGOum8i2dW1wqXcEGULPsRGHl3Vci4YI+z5B6W93qVo4GVghxmkO+2nLgb/tS2QvCThBF1XDuhmwvD1lvAEJyEzxVwpt81jM58qQuLDDAL3bMOII0uCWBebGdtVKhev2UuIWzE5kArrAmzp9eHAlcM5Raft3rrOl7wLW9s1zPlfKUKVU5UOOOw+5V7Ordwjc+jCObxfXrLIwq6f1acH8bZlJ22K2MpI8TpogKvSpnNGKWQ8KZXaGnJFtzTJUfePvPinVCWj+qKIWytilqcEYE648hykCe6xFhfqsQemjcdTEEPFdynrNLB1wx2f0fW6lHPjiODYGAmtoDm6TQlkkltHJdLzpjupR9E9T0QVgcL9hGZA2Z3OvlXGeGo+dBkE0b+9aYnwVMxepvbK1z3nHL9VNiO4llKG9Cr4x4H7GcEd47QDezd/6jfSZUttvMfAhxEoXkkzcgSaTZGRPnFIEZbcixs8+oUkTqGbh6UyUKKUXZaRDE84nS9y2G2iSFWk4yd9oppjyjdysrgSMCoKiNEnQSu3c8/5KHOhglH1UsQgfT62Me7wOLSumvM9ptHeo39SBI8o3zs0vBq1VUTqDie7GsmCnliiZvb2xaqJUy8fbBno=
- OS=$(uname -s)
matrix:
- _R_CHECK_CRAN_INCOMING_=FALSE
- R_CHECK_ARGS="--no-build-vignettes --no-manual --as-cran" RUN_RE2R_BENCHMARK="TRUE"
dist: trusty
sudo: required
language: r
cache: packages
os:
- linux
- osx
r:
- release
r_binary_packages:
- Rcpp
- RCurl
- stringi
- ggplot2
- dplyr
- curl
- jsonlite
- yaml
- tidyr
- RcppParallel
- markdown
r_packages:
- directlabels
- covr
before_install:
- if [[ "$TRAVIS_R_VERSION_STRING" = 'devel' ]]; then mkdir ~/.R && echo 'CXX1X=g++ -std=c++0x -g -O2 -fPIC' > ~/.R/Makevars; fi
after_success:
- mkdir ./vignettes/bench
- cp -r ./vignettes/disabled/bench/* ./vignettes/bench
- cp ./vignettes/disabled/benchmark.Rmd ./vignettes/benchmark.Rmd
- Rscript -e 'if ( Sys.getenv("OS") == "Linux" && Sys.getenv("RUN_RE2R_BENCHMARK") != "TRUE") {library("covr"); codecov();}'
- Rscript -e 'if ( Sys.getenv("OS") == "Linux" && Sys.getenv("RUN_RE2R_BENCHMARK") == "TRUE") {library(devtools); install.packages("roxygen2"); install(); install_github("hadley/staticdocs"); file.copy("./vignettes/web.yaml","./vignettes/_output.yaml",overwrite = T); build_vignettes(); system("rm -rf ./vignettes"); staticdocs::build_site();}'
- mkdir ./inst/doc/function
- cp -r ./inst/web/* ./inst/doc/function
- cd ./inst/doc/
- touch .nojekyll
- cp re2r-intro.html index.html
- git init
- git checkout -b gh-pages
- git add --all
- git -c user.name='travis' -c user.email='[email protected]' commit -m "update re2r gh-pages"
- if [ "${RUN_RE2R_BENCHMARK}" = "TRUE" ] && [ "${OS}" = "Linux" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then git push --force --quiet "https://qinwf:[email protected]/qinwf/re2r_doc.git" gh-pages > /dev/null 2>&1 ; fi;
notifications:
email:
on_success: change
on_failure: always