😎 Give your xaringan slides some style
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

61 line
2.2KB

  1. # OS: Linux + macOS ------------------------------------------------------------
  2. # tic documentation: https://docs.ropensci.org/tic/dev/
  3. matrix:
  4. include:
  5. - os: linux
  6. r: release
  7. env:
  8. - BUILD_PKGDOWN=true
  9. - os: osx
  10. r: release
  11. - os: linux
  12. r: devel
  13. - os: linux
  14. r: oldrel
  15. - os: osx
  16. r: oldrel
  17. # meta -------------------------------------------------------------------------
  18. language: r
  19. cache:
  20. - packages
  21. - $HOME/.ccache
  22. - $HOME/Library/Caches/Homebrew
  23. latex: false
  24. # environment variables --------------------------------------------------------
  25. env:
  26. global:
  27. - MAKEFLAGS="-j 2"
  28. # Stages -----------------------------------------------------------------------
  29. before_install:
  30. - if [ "${TRAVIS_OS_NAME}" == "osx" ]; then brew install ccache; fi
  31. - if [ "${TRAVIS_OS_NAME}" == "osx" ]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
  32. - echo -e "options(Ncpus = 8, repos = structure(c(CRAN = 'https://cloud.r-project.org/')))" > $HOME/.Rprofile
  33. - mkdir -p $HOME/.R && echo -e 'CXX_STD = CXX14\n\nCC=ccache gcc -std=gnu99\nCXX=ccache g++\nCXX11=ccache g++ -std=gnu99\nCXX14=ccache g++ -std=gnu99\nC11=ccache g++\nC14=ccache g++\nFC=ccache gfortran\nF77=ccache gfortran' > $HOME/.R/Makevars
  34. - mkdir -p $HOME/.ccache && echo -e 'max_size = 5.0G\nsloppiness = include_file_ctime\nhash_dir=false' > $HOME/.ccache/ccache.conf
  35. - R -q -e 'if (!requireNamespace("remotes")) install.packages("remotes")'
  36. - R -q -e 'if (getRversion() < "3.2" && !requireNamespace("curl")) install.packages("curl")'
  37. - R -q -e 'remotes::install_github("ropensci/tic", upgrade = "always"); print(tic::dsl_load()); tic::prepare_all_stages()'
  38. - R -q -e 'tic::before_install()'
  39. install:
  40. - R -q -e 'tic::install()'
  41. before_script: R -q -e 'tic::before_script()'
  42. script: R -q -e 'tic::script()'
  43. after_success: R -q -e 'tic::after_success()'
  44. after_failure: R -q -e 'tic::after_failure()'
  45. before_deploy: R -q -e 'tic::before_deploy()'
  46. deploy:
  47. provider: script
  48. script: R -q -e 'tic::deploy()'
  49. on:
  50. all_branches: true
  51. after_deploy: R -q -e 'tic::after_deploy()'
  52. after_script: R -q -e 'tic::after_script()'
  53. # Custom user code -------------------------------------------------------------