1 # Travis CI is only used to check the lesson and is not involved in its deployment
22 - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
23 - R_LIBS_USER=~/R/Library
24 - R_LIBS_SITE=/usr/local/lib/R/site-library:/usr/lib/R/site-library
28 ## Install R + pandoc + dependencies
29 - sudo add-apt-repository -y "ppa:marutter/rrutter4.0"
30 - sudo add-apt-repository -y "ppa:c2d4u.team/c2d4u4.0+"
31 - sudo add-apt-repository -y "ppa:ubuntugis/ppa"
32 - sudo add-apt-repository -y "ppa:cran/travis"
33 - travis_apt_get_update
34 - sudo apt-get install -y --no-install-recommends build-essential gcc g++ libblas-dev liblapack-dev libncurses5-dev libreadline-dev libjpeg-dev libpcre3-dev libpng-dev zlib1g-dev libbz2-dev liblzma-dev libicu-dev cdbs qpdf texinfo libssh2-1-dev gfortran jq python3.5 python3-pip r-base
35 - export PATH=${TRAVIS_HOME}/R-bin/bin:$PATH
36 - export LD_LIBRARY_PATH=${TRAVIS_HOME}/R-bin/lib:$LD_LIBRARY_PATH
37 - sudo mkdir -p /usr/local/lib/R/site-library $R_LIBS_USER
38 - sudo chmod 2777 /usr/local/lib/R /usr/local/lib/R/site-library $R_LIBS_USER
39 - echo 'options(repos = c(CRAN = "https://packagemanager.rstudio.com/all/__linux__/bionic/latest"))' > ~/.Rprofile.site
40 - export R_PROFILE=~/.Rprofile.site
41 - curl -fLo /tmp/texlive.tar.gz https://github.com/jimhester/ubuntu-bin/releases/download/latest/texlive.tar.gz
42 - tar xzf /tmp/texlive.tar.gz -C ~
43 - export PATH=${TRAVIS_HOME}/texlive/bin/x86_64-linux:$PATH
45 - curl -fLo /tmp/pandoc-2.2-1-amd64.deb https://github.com/jgm/pandoc/releases/download/2.2/pandoc-2.2-1-amd64.deb
46 - sudo dpkg -i /tmp/pandoc-2.2-1-amd64.deb
47 - sudo apt-get install -f
48 - rm /tmp/pandoc-2.2-1-amd64.deb
49 - Rscript -e "install.packages(setdiff(c('renv', 'rprojroot'), installed.packages()), loc = Sys.getenv('R_LIBS_USER')); update.packages(lib.loc = Sys.getenv('R_LIBS_USER'), ask = FALSE, checkBuilt = TRUE)"
50 - Rscript -e 'sessionInfo()'
51 ## Install python and dependencies
52 - python3 -m pip install --upgrade pip setuptools wheel
53 - python3 -m pip install pyyaml
56 - make lesson-check-all
57 - make --always-make site