-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
55 lines (55 loc) · 2.62 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
matrix:
include: #allows to set up tests/deploys in different languages/environments.
- stage: test # groups builds by type, add your tests here
language: r
r: bioc-release
cache: packages
bioc_check: true
os: linux
r_build_args: '--no-build-vignettes'
r_check_args: '--ignore-vignettes'
r_packages:
- covr
after_success:
- Rscript -e 'library(covr); codecov()'
- stage: deploy # this block builds and deploys the docs, it's in Python.
if: branch = master OR branch = devel
language: python
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n test-env python=$TRAVIS_PYTHON_VERSION
- source activate test-env
- sudo apt-get install jq
- pip install mkdocs==1 mkdocs-material==3.0.3
- conda install r-knitr r-devtools
- R -e 'remove.packages(c("curl","httr")); install.packages(c("curl", "httr"), repos="http://cran.mtu.edu"); Sys.setenv(CURL_CA_BUNDLE="/utils/microsoft-r-open-3.5.0/lib64/R/lib/microsoft-r-cacert.pem")'
- R -e 'install.packages("Rd2md", repos="http://cran.mtu.edu")'
- R -e 'install.packages("Rcpp", repos="http://cran.mtu.edu")'
#- R -e 'install.packages("BiocManager", repos="htpp://cran.mtu.edu")' r-base is still 3.5.1 for now
- R -e 'source("https://bioconductor.org/biocLite.R"); biocLite("BiocInstaller");'
- R -e 'library(devtools); install_github("compbiocore/RSeqAn",build_vignettes=FALSE)'
before_script:
- source activate test-env
script:
- mkdir docs
- Rscript make.R
- mkdir docs/styles
- mkdir docs/images
- curl https://api.github.com/repos/compbiocore/cbc-documentation-templates/contents/files/dark_mode.css\?access_token\=$GITHUB_PAT > dark_mode.json
- jq -r '.content' < dark_mode.json | base64 --decode > docs/styles/dark_mode.css
- curl https://api.github.com/repos/compbiocore/cbc-documentation-templates/contents/files/cbc-logo.svg\?access_token\=$GITHUB_PAT > logo.json
- jq -r '.content' < logo.json | base64 --decode > docs/images/cbc-logo.svg
- mkdocs build --verbose --clean --strict
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_PAT
local_dir: site
on:
branch: master